diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-05-20 15:37:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-20 15:37:25 +0200 |
| commit | a6ebaf8425b3da2c72226386c2e620e20a5b282c (patch) | |
| tree | 03022c9ed6235f15c78b6c91243c0b4f4779f613 | |
| parent | 0d8a2e58a3da9e69918ec961f6fee6f247a72d2e (diff) | |
| parent | 0d7d2cae2f414496113afebfb8fc2f2012e4e701 (diff) | |
| download | rust-a6ebaf8425b3da2c72226386c2e620e20a5b282c.tar.gz rust-a6ebaf8425b3da2c72226386c2e620e20a5b282c.zip | |
Rollup merge of #111771 - liushuyu:ubuntu/rep-stage0, r=ozkanonur
add `--remote-time` flag to curl for bootstrap This pull request sets the timestamp of the downloaded stage0 binary according to the server-reported timestamp (if possible). This allows make_orig-dl_tarball.sh to be more reproducible on the filesystem.
| -rw-r--r-- | src/bootstrap/bootstrap.py | 2 | ||||
| -rw-r--r-- | src/bootstrap/download.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index f22cdad7df4..50ace987193 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -109,7 +109,7 @@ def _download(path, url, probably_big, verbose, exception): "-L", # Follow redirect. "-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds "--connect-timeout", "30", # timeout if cannot connect within 30 seconds - "--retry", "3", "-Sf", url], + "--retry", "3", "-SRf", url], stdout=outfile, #Implements cli redirect operator '>' verbose=verbose, exception=True, # Will raise RuntimeError on failure diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs index 3e82a381a1b..25df5b2573b 100644 --- a/src/bootstrap/download.rs +++ b/src/bootstrap/download.rs @@ -219,7 +219,7 @@ impl Config { "30", // timeout if cannot connect within 30 seconds "--retry", "3", - "-Sf", + "-SRf", ]); curl.arg(url); let f = File::create(tempfile).unwrap(); |
