diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2022-06-07 13:15:41 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2022-06-09 19:43:06 +0200 |
| commit | 97f3ecda016ca7ab3edf64e11901466f879d4483 (patch) | |
| tree | ef6186372b1107ab072820db8f791b3cd7fa79d3 /src/bootstrap/builder.rs | |
| parent | c1a0f49e9f92ce7ebb8c9f2a3baefce779bb5950 (diff) | |
| download | rust-97f3ecda016ca7ab3edf64e11901466f879d4483.tar.gz rust-97f3ecda016ca7ab3edf64e11901466f879d4483.zip | |
load configuration for downloading artifacts from stage0.json
Diffstat (limited to 'src/bootstrap/builder.rs')
| -rw-r--r-- | src/bootstrap/builder.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 38d4f15d3c8..abd99233e0c 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -870,16 +870,10 @@ impl<'a> Builder<'a> { self.try_run(patchelf.arg(fname)); } - pub(crate) fn download_component( - &self, - base: &str, - url: &str, - dest_path: &Path, - help_on_error: &str, - ) { + pub(crate) fn download_component(&self, url: &str, dest_path: &Path, help_on_error: &str) { // Use a temporary file in case we crash while downloading, to avoid a corrupt download in cache/. let tempfile = self.tempdir().join(dest_path.file_name().unwrap()); - self.download_with_retries(&tempfile, &format!("{}/{}", base, url), help_on_error); + self.download_with_retries(&tempfile, url, help_on_error); t!(std::fs::rename(&tempfile, dest_path)); } |
