mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
exec: migrate exec.py to exec/cmd.py
This commit is contained in:
parent
72ca2258d1
commit
879fd113f0
12 changed files with 11 additions and 11 deletions
|
@ -3,7 +3,7 @@
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from exec import run_root_cmd
|
from exec.cmd import run_root_cmd
|
||||||
from utils import mount
|
from utils import mount
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ from shlex import quote as shell_quote
|
||||||
from typing import Protocol, Union, Optional, Mapping
|
from typing import Protocol, Union, Optional, Mapping
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
from exec import run_root_cmd, generate_env_cmd, flatten_shell_script, wrap_in_bash
|
from exec.cmd import run_root_cmd, generate_env_cmd, flatten_shell_script, wrap_in_bash
|
||||||
from config import config
|
from config import config
|
||||||
from constants import Arch, CHROOT_PATHS
|
from constants import Arch, CHROOT_PATHS
|
||||||
from distro.distro import get_base_distro, get_kupfer_local, RepoInfo
|
from distro.distro import get_base_distro, get_kupfer_local, RepoInfo
|
||||||
|
|
|
@ -5,7 +5,7 @@ from glob import glob
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
|
|
||||||
from constants import Arch
|
from constants import Arch
|
||||||
from exec import run_root_cmd
|
from exec.cmd import run_root_cmd
|
||||||
|
|
||||||
from .abstract import Chroot, get_chroot
|
from .abstract import Chroot, get_chroot
|
||||||
from .helpers import base_chroot_name
|
from .helpers import base_chroot_name
|
||||||
|
|
|
@ -7,7 +7,7 @@ from typing import Optional
|
||||||
from config import config
|
from config import config
|
||||||
from constants import Arch, GCC_HOSTSPECS, CROSSDIRECT_PKGS, CHROOT_PATHS
|
from constants import Arch, GCC_HOSTSPECS, CROSSDIRECT_PKGS, CHROOT_PATHS
|
||||||
from distro.distro import get_kupfer_local
|
from distro.distro import get_kupfer_local
|
||||||
from exec import run_root_cmd
|
from exec.cmd import run_root_cmd
|
||||||
|
|
||||||
from .abstract import Chroot, get_chroot
|
from .abstract import Chroot, get_chroot
|
||||||
from .helpers import build_chroot_name
|
from .helpers import build_chroot_name
|
||||||
|
|
2
flash.py
2
flash.py
|
@ -5,7 +5,7 @@ import click
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from constants import FLASH_PARTS, LOCATIONS
|
from constants import FLASH_PARTS, LOCATIONS
|
||||||
from exec import run_root_cmd
|
from exec.cmd import run_root_cmd
|
||||||
from fastboot import fastboot_flash
|
from fastboot import fastboot_flash
|
||||||
from image import dd_image, partprobe, shrink_fs, losetup_rootfs_image, dump_aboot, dump_lk2nd, dump_qhypstub, get_device_and_flavour, get_image_name, get_image_path
|
from image import dd_image, partprobe, shrink_fs, losetup_rootfs_image, dump_aboot, dump_lk2nd, dump_qhypstub, get_device_and_flavour, get_image_name, get_image_path
|
||||||
from wrapper import enforce_wrap
|
from wrapper import enforce_wrap
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import click
|
import click
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from exec import run_root_cmd
|
from exec.cmd import run_root_cmd
|
||||||
from ssh import run_ssh_command
|
from ssh import run_ssh_command
|
||||||
from wrapper import check_programs_wrap
|
from wrapper import check_programs_wrap
|
||||||
|
|
||||||
|
|
2
image.py
2
image.py
|
@ -13,7 +13,7 @@ from chroot.device import DeviceChroot, get_device_chroot
|
||||||
from constants import Arch, BASE_PACKAGES, DEVICES, FLAVOURS
|
from constants import Arch, BASE_PACKAGES, DEVICES, FLAVOURS
|
||||||
from config import config, Profile
|
from config import config, Profile
|
||||||
from distro.distro import get_base_distro, get_kupfer_https
|
from distro.distro import get_base_distro, get_kupfer_https
|
||||||
from exec import run_root_cmd
|
from exec.cmd import run_root_cmd
|
||||||
from packages import build_enable_qemu_binfmt, discover_packages, build_packages
|
from packages import build_enable_qemu_binfmt, discover_packages, build_packages
|
||||||
from ssh import copy_ssh_keys
|
from ssh import copy_ssh_keys
|
||||||
from wrapper import enforce_wrap
|
from wrapper import enforce_wrap
|
||||||
|
|
|
@ -15,7 +15,7 @@ from typing import Iterable, Iterator, Any, Optional
|
||||||
from binfmt import register as binfmt_register
|
from binfmt import register as binfmt_register
|
||||||
from constants import REPOSITORIES, CROSSDIRECT_PKGS, QEMU_BINFMT_PKGS, GCC_HOSTSPECS, ARCHES, Arch, CHROOT_PATHS, MAKEPKG_CMD
|
from constants import REPOSITORIES, CROSSDIRECT_PKGS, QEMU_BINFMT_PKGS, GCC_HOSTSPECS, ARCHES, Arch, CHROOT_PATHS, MAKEPKG_CMD
|
||||||
from config import config
|
from config import config
|
||||||
from exec import run_cmd, run_root_cmd
|
from exec.cmd import run_cmd, run_root_cmd
|
||||||
from chroot.build import get_build_chroot, BuildChroot
|
from chroot.build import get_build_chroot, BuildChroot
|
||||||
from distro.distro import PackageInfo, get_kupfer_https, get_kupfer_local
|
from distro.distro import PackageInfo, get_kupfer_https, get_kupfer_local
|
||||||
from ssh import run_ssh_command, scp_put_files
|
from ssh import run_ssh_command, scp_put_files
|
||||||
|
|
|
@ -6,7 +6,7 @@ import subprocess
|
||||||
from typing import Optional, Sequence
|
from typing import Optional, Sequence
|
||||||
|
|
||||||
from config import ConfigStateHolder
|
from config import ConfigStateHolder
|
||||||
from exec import run_cmd
|
from exec.cmd import run_cmd
|
||||||
from constants import Arch, MAKEPKG_CMD
|
from constants import Arch, MAKEPKG_CMD
|
||||||
from distro.package import PackageInfo
|
from distro.package import PackageInfo
|
||||||
from logger import logging, setup_logging
|
from logger import logging, setup_logging
|
||||||
|
|
2
ssh.py
2
ssh.py
|
@ -6,7 +6,7 @@ import click
|
||||||
|
|
||||||
from config import config
|
from config import config
|
||||||
from constants import SSH_COMMON_OPTIONS, SSH_DEFAULT_HOST, SSH_DEFAULT_PORT
|
from constants import SSH_COMMON_OPTIONS, SSH_DEFAULT_HOST, SSH_DEFAULT_PORT
|
||||||
from exec import run_cmd
|
from exec.cmd import run_cmd
|
||||||
|
|
||||||
|
|
||||||
@click.command(name='ssh')
|
@click.command(name='ssh')
|
||||||
|
|
2
utils.py
2
utils.py
|
@ -4,7 +4,7 @@ import subprocess
|
||||||
from shutil import which
|
from shutil import which
|
||||||
from typing import Optional, Union, Sequence
|
from typing import Optional, Union, Sequence
|
||||||
|
|
||||||
from exec import run_cmd, run_root_cmd
|
from exec.cmd import run_cmd, run_root_cmd
|
||||||
|
|
||||||
|
|
||||||
def programs_available(programs: Union[str, Sequence[str]]) -> bool:
|
def programs_available(programs: Union[str, Sequence[str]]) -> bool:
|
||||||
|
|
Loading…
Add table
Reference in a new issue