diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-07 07:55:06 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-07 07:55:06 -0800 |
| commit | 93f9e696c54f8a67e9e2b7fd949c9eca7401e14e (patch) | |
| tree | 2eb849777f90ecea69de7a68974e2971dafe5836 | |
| parent | 31918864261c9fde79df1f84c5f22ab40b115ca9 (diff) | |
| download | rust-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.py | 2 |
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): |
