image: cmd_build(): add --[no-]local-repos to build images from https repos only

This commit is contained in:
InsanePrawn 2022-05-08 18:02:36 +02:00
parent cb95846fb5
commit 6000679817
2 changed files with 10 additions and 9 deletions

View file

@ -553,13 +553,13 @@ def build_packages_by_paths(
def build_enable_qemu_binfmt(arch: Arch, repo: dict[str, Pkgbuild] = None):
if arch not in ARCHES:
raise Exception(f'Unknown architecture "{arch}". Choices: {", ".join(ARCHES)}')
logging.info('Installing qemu-user (building if necessary)')
enforce_wrap()
if not repo:
repo = discover_packages()
native = config.runtime['arch']
# build qemu-user, binfmt, crossdirect
chroot = setup_build_chroot(native)
logging.info('Installing qemu-user (building if necessary)')
build_packages_by_paths(
['cross/' + pkg for pkg in CROSSDIRECT_PKGS],
native,