]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: Pass --retry 3 to curl
authorAlex Crichton <alex@alexcrichton.com>
Sat, 7 Jan 2017 15:55:06 +0000 (07:55 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 7 Jan 2017 15:55:06 +0000 (07:55 -0800)
Try to handle spurious network failures on Travis by automatically
retrying failed downloads on Travis.

src/bootstrap/bootstrap.py

index 89d297760e2864c8345b876d87112be2fb5c2998..85e8dbce1a955000d839be8289a27069d4180dbf 100644 (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):