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.
This commit is contained in:
Guillaume Gomez 2023-05-20 15:37:25 +02:00 committed by GitHub
commit a6ebaf8425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();