binfmt: move to own module, add cmd_register(), cmd_unregister() to cli

This commit is contained in:
InsanePrawn 2022-12-22 02:14:56 +01:00 committed by Prawn
parent 46507f8dbe
commit c86ce577d1
6 changed files with 25 additions and 1 deletions

View file

@ -9,7 +9,7 @@ from copy import deepcopy
from urllib.error import HTTPError
from typing import Iterable, Iterator, Optional
from binfmt import register as binfmt_register
from binfmt.binfmt import binfmt_register
from constants import CROSSDIRECT_PKGS, QEMU_BINFMT_PKGS, GCC_HOSTSPECS, ARCHES, Arch, CHROOT_PATHS, MAKEPKG_CMD
from config.state import config
from exec.cmd import run_cmd, run_root_cmd