depends: Use $(package)_file_name when downloading from the fallback

Github-Pull: #33580
Rebased-From: 671b774d1b58c491b53f2b2f6ee42fb6b65a0e71
This commit is contained in:
Ava Chow 2025-10-08 13:10:59 -07:00 committed by fanquake
parent 72d1141bd8
commit 73ed57a35e
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -38,7 +38,7 @@ endef
define fetch_file
( test -f $$($(1)_source_dir)/$(4) || \
( $(call fetch_file_inner,$(1),$(2),$(3),$(4),$(5)) || \
$(call fetch_file_inner,$(1),$(FALLBACK_DOWNLOAD_PATH),$(3),$(4),$(5))))
$(call fetch_file_inner,$(1),$(FALLBACK_DOWNLOAD_PATH),$(4),$(4),$(5))))
endef
# Shell script to create a source tarball in $(1)_source from local directory