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 <zixing.liu@canonical.com>
This commit is contained in:
parent
8a281f9c79
commit
0d7d2cae2f
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ def _download(path, url, probably_big, verbose, exception):
|
||||||
"-L", # Follow redirect.
|
"-L", # Follow redirect.
|
||||||
"-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds
|
"-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds
|
||||||
"--connect-timeout", "30", # timeout if cannot connect within 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 '>'
|
stdout=outfile, #Implements cli redirect operator '>'
|
||||||
verbose=verbose,
|
verbose=verbose,
|
||||||
exception=True, # Will raise RuntimeError on failure
|
exception=True, # Will raise RuntimeError on failure
|
||||||
|
|
|
@ -219,7 +219,7 @@ impl Config {
|
||||||
"30", // timeout if cannot connect within 30 seconds
|
"30", // timeout if cannot connect within 30 seconds
|
||||||
"--retry",
|
"--retry",
|
||||||
"3",
|
"3",
|
||||||
"-Sf",
|
"-SRf",
|
||||||
]);
|
]);
|
||||||
curl.arg(url);
|
curl.arg(url);
|
||||||
let f = File::create(tempfile).unwrap();
|
let f = File::create(tempfile).unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue