about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-01-07 07:55:06 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-01-07 07:55:06 -0800
commit93f9e696c54f8a67e9e2b7fd949c9eca7401e14e (patch)
tree2eb849777f90ecea69de7a68974e2971dafe5836
parent31918864261c9fde79df1f84c5f22ab40b115ca9 (diff)
downloadrust-93f9e696c54f8a67e9e2b7fd949c9eca7401e14e.tar.gz
rust-93f9e696c54f8a67e9e2b7fd949c9eca7401e14e.zip
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):