]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #45209 - kennytm:treat-checksum-error-as-download-error, r=Mark-Simul...
authorkennytm <kennytm@gmail.com>
Fri, 13 Oct 2017 15:38:00 +0000 (23:38 +0800)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2017 15:38:00 +0000 (23:38 +0800)
rustbuild: Make openssl download more reliable.

1. Add `-f` flag to curl, so when the server returns 403 or 500 it will fail immediately.
2. Moved the checksum part into the retry loop, assuming checksum failure is due to broken download that can be fixed by downloading again.

This PR is created responding to two recent spurious failures in https://github.com/rust-lang/rust/pull/45075#issuecomment-335202319 and https://github.com/rust-lang/rust/pull/45030#issuecomment-335029356.

r? @Mark-Simulacrum , cc @aidanhs


Trivial merge