chroot.py: fix activation and initialisation of build_chroots: mount packages

This commit is contained in:
InsanePrawn 2021-10-27 00:33:24 +02:00
parent f369b00ebd
commit 8934d94f9c
2 changed files with 19 additions and 14 deletions

View file

@ -394,10 +394,7 @@ def check_package_version_built(package: Package, arch: Arch) -> bool:
def setup_build_chroot(arch: Arch, extra_packages: list[str] = [], clean_chroot: bool = False) -> Chroot:
chroot = get_build_chroot(
arch,
extra_repos=get_kupfer_local(arch).repos,
)
chroot = get_build_chroot(arch)
logging.info(f'Initializing {arch} build chroot')
chroot.initialize(reset=clean_chroot)
chroot.activate()