format: clean up leftovers
This commit is contained in:
parent
7a324555da
commit
0c38fabf11
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,8 @@ import os
|
||||||
from config import config
|
from config import config
|
||||||
from wrapper import enforce_wrap
|
from wrapper import enforce_wrap
|
||||||
|
|
||||||
from .base import get_base_chroot, Chroot, BaseChroot
|
from .abstract import Chroot
|
||||||
|
from .base import get_base_chroot
|
||||||
from .build import get_build_chroot, BuildChroot
|
from .build import get_build_chroot, BuildChroot
|
||||||
#from .device import get_device_chroot, DeviceChroot
|
#from .device import get_device_chroot, DeviceChroot
|
||||||
from .helpers import get_chroot_path
|
from .helpers import get_chroot_path
|
||||||
|
|
|
@ -221,7 +221,6 @@ class Chroot(AbstractChroot):
|
||||||
if outer_env is None:
|
if outer_env is None:
|
||||||
outer_env = os.environ.copy()
|
outer_env = os.environ.copy()
|
||||||
env_cmd = ['/usr/bin/env'] + [f'{shell_quote(key)}={shell_quote(value)}' for key, value in inner_env.items()]
|
env_cmd = ['/usr/bin/env'] + [f'{shell_quote(key)}={shell_quote(value)}' for key, value in inner_env.items()]
|
||||||
run_func = subprocess.call if attach_tty else subprocess.run
|
|
||||||
kwargs: dict = {
|
kwargs: dict = {
|
||||||
'env': outer_env,
|
'env': outer_env,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import os
|
import os
|
||||||
from typing import Union, Optional, TypedDict
|
from typing import Optional, TypedDict
|
||||||
|
|
||||||
from config import config
|
from config import config
|
||||||
from constants import Arch
|
from constants import Arch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue