diff options
Diffstat (limited to 'mdbp')
-rw-r--r-- | mdbp/mmdebstrap.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mdbp/mmdebstrap.py b/mdbp/mmdebstrap.py index 37b6655..9726a03 100644 --- a/mdbp/mmdebstrap.py +++ b/mdbp/mmdebstrap.py @@ -105,11 +105,17 @@ def hook_main(build: JsonObject, chroot: pathlib.Path) -> None: hostarch = build.get("host_architecture") or \ build.get("build_architecture") or \ native_architecture() - cmd = [*apt_get, "build-dep", "--host-architecture", hostarch, - *dict(any=["--arch-only"], - all=["--indep-only"]).get(build.get("type"), ()), - *profile_option(build, "--build-profiles"), - "./"] + type_map: typing.Dict[typing.Any, typing.Sequence[str]] = dict( + any=["--arch-only"], all=["--indep-only"] + ) + cmd = [ + *apt_get, + "build-dep", + *("--host-architecture", hostarch), + *type_map.get(build.get("type"), ()), + *profile_option(build, "--build-profiles"), + "./", + ] try: priv_drop(cmd, chroot=chroot, chdir=builddir / subdir) except subprocess.CalledProcessError: |