mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 19:10:40 +01:00
test: Move Fetching-print to download_from_url util
This does not change any behavior.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user