Skip to content

Commit 7265b93

Browse files
committed
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.
2 parents 2ceb6e0 + 93f9e69 commit 7265b93

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)