mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
chroot: add option not to add kupfer repos to avoid bootstrapping problems later
This commit is contained in:
parent
e6c55a1311
commit
a66992ff45
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue