From 97f3ecda016ca7ab3edf64e11901466f879d4483 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Tue, 7 Jun 2022 13:15:41 +0200 Subject: load configuration for downloading artifacts from stage0.json --- src/bootstrap/builder.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/bootstrap/builder.rs') 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)); } -- cgit 1.4.1-3-g733a5