chroots: clean up get_*chroot() function signatures
This commit is contained in:
parent
07a8c3c79a
commit
8a31a98946
4 changed files with 12 additions and 10 deletions
|
@ -48,7 +48,7 @@ class BaseChroot(Chroot):
|
|||
|
||||
def get_base_chroot(arch: Arch) -> BaseChroot:
|
||||
name = base_chroot_name(arch)
|
||||
default = BaseChroot(name, arch, copy_base=False, initialize=False)
|
||||
chroot = get_chroot(name, initialize=False, default=default)
|
||||
args = dict(arch=arch, copy_base=False, initialize=False)
|
||||
chroot = get_chroot(name, initialize=False, chroot_class=BaseChroot, chroot_args=args)
|
||||
assert isinstance(chroot, BaseChroot)
|
||||
return chroot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue