Merge bitcoin/bitcoin#33580: depends: Use $(package)_file_name when downloading from the fallback

671b774d1b58c491b53f2b2f6ee42fb6b65a0e71 depends: Use $(package)_file_name when downloading from the fallback (Ava Chow)

Pull request description:

  The server hosting the fallbacks uses `make download` so the files are only available with their overridden names rather than the original name on the upstream source. We should therefore also use the overridden name when downloading from the fallback.

  Fixes https://github.com/bitcoin-core/bitcoincore.org/issues/1168

ACKs for top commit:
  theuni:
    utACK 671b774d1b58c491b53f2b2f6ee42fb6b65a0e71. I was going to PR the same change.
  janb84:
    ut ACK 671b774d1b58c491b53f2b2f6ee42fb6b65a0e71
  hebasto:
    ACK 671b774d1b58c491b53f2b2f6ee42fb6b65a0e71, tested with the following patch:

Tree-SHA512: ba010adb64900d8d748487cc1a658e2b163872354f4e7b38c4dfc37a14fcb22fec4379a635d2c6788c64dd46bef0d94aa3eb6f522ec700680e886d5468678031
This commit is contained in:
Hennadii Stepanov 2025-10-13 11:53:52 +01:00
commit 563747971b
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -37,7 +37,7 @@ endef
define fetch_file
( $(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