From a66992ff456146e69a2eb4c36fd8afa361b64283 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Wed, 27 Oct 2021 02:46:53 +0200 Subject: [PATCH] chroot: add option not to add kupfer repos to avoid bootstrapping problems later --- chroot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chroot.py b/chroot.py index daf9a45..098641f 100644 --- a/chroot.py +++ b/chroot.py @@ -111,11 +111,12 @@ def get_base_chroot(arch: Arch, **kwargs) -> Chroot: return get_chroot(name, **kwargs, initialize=False, default=default) -def get_build_chroot(arch: Arch, **kwargs) -> Chroot: +def get_build_chroot(arch: Arch, add_kupfer_repos: bool = True, **kwargs) -> Chroot: name = build_chroot_name(arch) if 'extra_repos' in kwargs: raise Exception('extra_repos!') - default = Chroot(name, arch, initialize=False, copy_base=True, extra_repos=get_kupfer_local(arch).repos) + repos = get_kupfer_local(arch).repos if add_kupfer_repos else {} + default = Chroot(name, arch, initialize=False, copy_base=True, extra_repos=repos) chroot = get_chroot(name, **kwargs, default=default) return chroot