Skip to content

Commit

Permalink
Auto merge of #38907 - alexcrichton:curl-retry, r=japaric
Browse files Browse the repository at this point in the history
rustbuild: Pass --retry 3 to curl

Try to handle spurious network failures on Travis by automatically
retrying failed downloads on Travis.
  • Loading branch information
bors committed Jan 9, 2017
2 parents 2ceb6e0 + 93f9e69 commit 7265b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Expand Up @@ -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):
Expand Down

0 comments on commit 7265b93

Please sign in to comment.