Skip to content

Commit 93f9e69

Browse files
committed
rustbuild: Pass --retry 3 to curl
Try to handle spurious network failures on Travis by automatically retrying failed downloads on Travis.
1 parent 3191886 commit 93f9e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def download(path, url, probably_big, verbose):
7272
option = "-#"
7373
else:
7474
option = "-s"
75-
run(["curl", option, "-Sf", "-o", path, url], verbose=verbose)
75+
run(["curl", option, "--retry", "3", "-Sf", "-o", path, url], verbose=verbose)
7676

7777

7878
def verify(path, sha_path, verbose):

0 commit comments

Comments
 (0)