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 config.state import config
|
||||||
from wrapper import enforce_wrap
|
from wrapper import enforce_wrap
|
||||||
|
from devices.device import get_profile_device
|
||||||
|
|
||||||
from .abstract import Chroot
|
from .abstract import Chroot
|
||||||
from .base import get_base_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
|
chroot: Chroot
|
||||||
arch = name
|
arch = name
|
||||||
if not arch:
|
if not arch:
|
||||||
# TODO: importing packages.device.get_profile_device() causes import loop:
|
arch = get_profile_device().arch
|
||||||
# arch = get_profile_device().arch
|
|
||||||
arch = config.runtime.arch
|
|
||||||
assert arch
|
assert arch
|
||||||
if type == 'base':
|
if type == 'base':
|
||||||
chroot = get_base_chroot(arch)
|
chroot = get_base_chroot(arch)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue