Skip to content

Commit 0d7d2ca

Browse files
infinity0Zixing Liu
authored andcommitted
Set the timestamp of downloaded stage0 files ...
... using server-reported timestamp. This allows us to track changes to the downloaded artifact more easily and in a more reproducible manner. Co-authored-by: Zixing Liu <[email protected]>
1 parent 8a281f9 commit 0d7d2ca

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)