mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
anaconda: add retry and time limit
This commit is contained in:
parent
0f0a174fd9
commit
a57f978678
@ -71,7 +71,8 @@ def curl_download(remote_url: str, dst_file: Path, md5: str = None):
|
||||
sp.check_call([
|
||||
"curl", "-o", str(dst_file),
|
||||
"-sL", "--remote-time", "--show-error",
|
||||
"--fail", remote_url,
|
||||
"--fail", "--retry", "10", "--speed-time", "15",
|
||||
"--speed-limit", "5000", remote_url,
|
||||
])
|
||||
if md5 and (not md5_check(dst_file, md5)):
|
||||
return "MD5 mismatch"
|
||||
|
Loading…
x
Reference in New Issue
Block a user