mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
chroot/cli: import get_profile_device() properly now that import loop is fixed
This commit is contained in:
parent
254d59959b
commit
d1267d4082
1 changed files with 2 additions and 3 deletions
|
@ -4,6 +4,7 @@ import os
|
|||
|
||||
from config.state import config
|
||||
from wrapper import enforce_wrap
|
||||
from devices.device import get_profile_device
|
||||
|
||||
from .abstract import Chroot
|
||||
from .base import get_base_chroot
|
||||
|
@ -37,9 +38,7 @@ def cmd_chroot(ctx: click.Context, type: str = 'build', name: str = None, enable
|
|||
chroot: Chroot
|
||||
arch = name
|
||||
if not arch:
|
||||
# TODO: importing packages.device.get_profile_device() causes import loop:
|
||||
# arch = get_profile_device().arch
|
||||
arch = config.runtime.arch
|
||||
arch = get_profile_device().arch
|
||||
assert arch
|
||||
if type == 'base':
|
||||
chroot = get_base_chroot(arch)
|
||||
|
|
Loading…
Add table
Reference in a new issue