Skip to content

Commit a6ebaf8

Browse files
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.
2 parents 0d8a2e5 + 0d7d2ca commit a6ebaf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _download(path, url, probably_big, verbose, exception):
109109
"-L", # Follow redirect.
110110
"-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds
111111
"--connect-timeout", "30", # timeout if cannot connect within 30 seconds
112-
"--retry", "3", "-Sf", url],
112+
"--retry", "3", "-SRf", url],
113113
stdout=outfile, #Implements cli redirect operator '>'
114114
verbose=verbose,
115115
exception=True, # Will raise RuntimeError on failure

src/bootstrap/download.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl Config {
219219
"30", // timeout if cannot connect within 30 seconds
220220
"--retry",
221221
"3",
222-
"-Sf",
222+
"-SRf",
223223
]);
224224
curl.arg(url);
225225
let f = File::create(tempfile).unwrap();

0 commit comments

Comments
 (0)