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
|
@ -164,7 +164,7 @@ def get_build_chroot(arch: Arch, add_kupfer_repos: bool = True, **kwargs) -> Bui
|
|||
if 'extra_repos' in kwargs:
|
||||
raise Exception('extra_repos!')
|
||||
repos = get_kupfer_local(arch).repos if add_kupfer_repos else {}
|
||||
default = BuildChroot(name, arch, initialize=False, copy_base=True, extra_repos=repos)
|
||||
chroot = get_chroot(name, **kwargs, extra_repos=repos, default=default)
|
||||
args = dict(arch=arch, initialize=False, copy_base=True, extra_repos=repos)
|
||||
chroot = get_chroot(name, **kwargs, extra_repos=repos, chroot_class=BuildChroot, chroot_args=args)
|
||||
assert isinstance(chroot, BuildChroot)
|
||||
return chroot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue