mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-05 19:26:17 +00:00
test: Move Fetching-print to download_from_url util
This does not change any behavior.
This commit is contained in:
parent
faf96286ce
commit
7777a13306
@ -9,6 +9,7 @@ import urllib.request
|
||||
|
||||
|
||||
def download_from_url(url, archive):
|
||||
print(f"Fetching: {url}")
|
||||
last_print_time = time.time()
|
||||
|
||||
def progress_hook(progress_bytes, total_size):
|
||||
|
||||
@ -129,8 +129,6 @@ def download_binary(tag, args) -> int:
|
||||
archive = f'bitcoin-{tag[1:]}-{host}.{archive_format}'
|
||||
archive_url = f'https://bitcoincore.org/{bin_path}/{archive}'
|
||||
|
||||
print(f'Fetching: {archive_url}')
|
||||
|
||||
try:
|
||||
download_from_url(archive_url, archive)
|
||||
except Exception as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user