Auto merge of #38907 - alexcrichton:curl-retry, r=japaric

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:
bors 2017-01-09 01:00:30 +00:00
commit 7265b93842

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):