From 045f97722e406359778be986c6b1fa8b0f9f8a72 Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Sat, 9 Nov 2024 10:53:34 -0500 Subject: [PATCH] Add missing location to use the base url in bootstrap --- scale_build/bootstrap/bootstrapdir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scale_build/bootstrap/bootstrapdir.py b/scale_build/bootstrap/bootstrapdir.py index d1d63176..5b10ca8c 100644 --- a/scale_build/bootstrap/bootstrapdir.py +++ b/scale_build/bootstrap/bootstrapdir.py @@ -47,7 +47,6 @@ def setup_impl(self): self.add_trusted_apt_key() apt_repos = get_manifest()['apt-repos'] apt_base_url = get_apt_base_url() - logger.info('Using apt base url (%s)', apt_base_url) self.debootstrap_debian() self.setup_mounts() @@ -149,11 +148,12 @@ def cache_filename(self): def debootstrap_debian(self): manifest = get_manifest() + apt_base_url = get_apt_base_url() run( ['debootstrap'] + self.deopts + [ '--foreign', '--keyring', '/etc/apt/trusted.gpg.d/debian-archive-truenas-automatic.gpg', manifest['debian_release'], - self.chroot_basedir, manifest['apt-repos']['url'] + self.chroot_basedir, apt_base_url + manifest['apt-repos']['url'] ] ) for reference_file in REFERENCE_FILES: