@@ -36,9 +36,8 @@ define fetch_file_inner
3636endef
3737
3838define fetch_file
39- ( test -f $$($(1 ) _source_dir) /$(4 ) || \
4039 ( $(call fetch_file_inner,$(1 ) ,$(2 ) ,$(3 ) ,$(4 ) ,$(5 ) ) || \
41- $(call fetch_file_inner,$(1 ) ,$(FALLBACK_DOWNLOAD_PATH ) ,$(3 ) ,$(4 ) ,$(5 ) ) ))
40+ $(call fetch_file_inner,$(1 ) ,$(FALLBACK_DOWNLOAD_PATH ) ,$(3 ) ,$(4 ) ,$(5 ) ) )
4241endef
4342
4443# Shell script to create a source tarball in $(1)_source from local directory
@@ -109,7 +108,7 @@ $(1)_prefixbin:=$($($(1)_type)_prefix)/bin/
109108$(1 ) _all_sources=$($(1 ) _file_name) $($(1 ) _extra_sources)
110109
111110# stamps
112- $(1 ) _fetched=$(SOURCES_PATH ) /download-stamps/.stamp_fetched-$(1 ) -$($(1 ) _file_name ) .hash
111+ $(1 ) _fetched=$(SOURCES_PATH ) /download-stamps/.stamp_fetched-$(1 ) -$($(1 ) _version) - $( $( 1 ) _sha256_hash ) .hash
113112$(1 ) _extracted=$$($(1 ) _extract_dir) /.stamp_extracted
114113$(1 ) _preprocessed=$$($(1 ) _extract_dir) /.stamp_preprocessed
115114$(1 ) _cleaned=$$($(1 ) _extract_dir) /.stamp_cleaned
@@ -247,7 +246,6 @@ endif
247246$($(1 ) _fetched) :
248247 mkdir -p $$(@D ) $(SOURCES_PATH )
249248 rm -f $$@
250- touch $$@
251249 cd $$(@D ) ; $($(1 ) _fetch_cmds)
252250 cd $($(1 ) _source_dir) ; $(foreach source,$($(1 ) _all_sources) ,$(build_SHA256SUM ) $(source ) >> $$(@ ) ;)
253251 touch $$@
0 commit comments