Skip to content
Snippets Groups Projects
Commit d5d37394 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Show download size in MB

parent 43e9e797
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ def fetch(git_repo, checkout_dir=None, verbose=0, only=[]):
url = obj["actions"]["download"]["href"]
head = obj["actions"]["download"]["header"]
logged_url = url if verbose > 0 else url[:40]
logger.info(f"Downloading {path} ({size} bytes) from {logged_url}...")
logger.info(f"Downloading {path} ({size / (1024 ** 2)} MB) from {logged_url}...")
h = urlretrieve(url, headers=head)
while True:
buf = h.read(10240)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment