Skip to content

Commit

Permalink
rustbuild: Pass --retry 3 to curl
Browse files Browse the repository at this point in the history
Try to handle spurious network failures on Travis by automatically
retrying failed downloads on Travis.
  • Loading branch information
alexcrichton committed Jan 7, 2017
1 parent 3191886 commit 93f9e69
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 93f9e69

Please sign in to comment.