mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02: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):
|
def download_from_url(url, archive):
|
||||||
|
print(f"Fetching: {url}")
|
||||||
last_print_time = time.time()
|
last_print_time = time.time()
|
||||||
|
|
||||||
def progress_hook(progress_bytes, total_size):
|
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 = f'bitcoin-{tag[1:]}-{host}.{archive_format}'
|
||||||
archive_url = f'https://bitcoincore.org/{bin_path}/{archive}'
|
archive_url = f'https://bitcoincore.org/{bin_path}/{archive}'
|
||||||
|
|
||||||
print(f'Fetching: {archive_url}')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
download_from_url(archive_url, archive)
|
download_from_url(archive_url, archive)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user