rustbuild: Pass --retry 3 to curl

Try to handle spurious network failures on Travis by automatically
retrying failed downloads on Travis.
This commit is contained in:
Alex Crichton 2017-01-07 07:55:06 -08:00
parent 3191886426
commit 93f9e696c5
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def download(path, url, probably_big, verbose):
option = "-#"
else:
option = "-s"
run(["curl", option, "-Sf", "-o", path, url], verbose=verbose)
run(["curl", option, "--retry", "3", "-Sf", "-o", path, url], verbose=verbose)
def verify(path, sha_path, verbose):