From bdad82ad139c3bedb72d8731dade37a04fdbe11c Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 17 May 2021 21:31:56 +0200 Subject: mmdebstrap: don't keep a lintian.deb either --- mdbp/mmdebstrap.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mdbp/mmdebstrap.py b/mdbp/mmdebstrap.py index 86d4b82..5a70540 100644 --- a/mdbp/mmdebstrap.py +++ b/mdbp/mmdebstrap.py @@ -91,9 +91,8 @@ def main() -> None: setuid="build", chroot=True, chdir=buildpath.parent), priv_drop(["rm", *(f.name for f in dscfiles)], chroot=True, chdir=buildpath.parent))) - cmd = ["apt-get", "build-dep", "--yes", - "-oAPT::Keep-Downloaded-Packages=false", - "--host-architecture", hostarch, + apt_get = ["apt-get", "--yes", "-oAPT::Keep-Downloaded-Packages=false"] + cmd = [*apt_get, "build-dep", "--host-architecture", hostarch, *dict(any=["--arch-only"], all=["--indep-only"]).get(build.get("type"), ()), *profile_option(build, "--build-profiles"), @@ -122,7 +121,7 @@ def main() -> None: cmd = ["lintian", *build["lintian"].get("options", ()), "%s_%s.changes" % (dscpath.stem, hostarch)] script.write("%s\n%s\n" % - (priv_drop(["apt-get", "install", "--yes", "lintian"], + (priv_drop([*apt_get, "install", "lintian"], chroot=True), priv_drop(cmd, chroot=True, setuid="build", chdir=buildpath.parent))) -- cgit v1.2.3