about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-09 01:00:30 +0000
committerbors <bors@rust-lang.org>2017-01-09 01:00:30 +0000
commit7265b938425135702fb2aea9874afca1d3b4c5be (patch)
treecc1775353bae9dd97bf6e2890757ec99dc7e2401
parent2ceb6e0ecd3aae53a239cf5fba3c15fbe10d2851 (diff)
parent93f9e696c54f8a67e9e2b7fd949c9eca7401e14e (diff)
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.
-rw-r--r--src/bootstrap/bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 89d297760e2..85e8dbce1a9 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -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):