chroot.cmd_inspect(): fix Chroot.init() -> Chroot.initialize()

This commit is contained in:
InsanePrawn 2022-02-17 19:37:50 +01:00
parent ddab25b030
commit 08141c35e9

View file

@ -572,12 +572,12 @@ def cmd_chroot(type: str = 'build', arch: str = None, enable_crossdirect=True):
if type == 'base':
chroot = get_base_chroot(arch)
if not os.path.exists(os.path.join(chroot.path, 'bin')):
chroot.init()
chroot.initialize()
chroot.initialized = True
elif type == 'build':
chroot = get_build_chroot(arch, activate=True)
if not os.path.exists(os.path.join(chroot.path, 'bin')):
chroot.init()
chroot.initialize()
chroot.initialized = True
chroot.mount_pkgbuilds()
if config.file['build']['crossdirect'] and enable_crossdirect: