summaryrefslogtreecommitdiff
path: root/mdbp/mmdebstrap.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2021-05-17 21:31:56 +0200
committerHelmut Grohne <helmut@subdivi.de>2021-05-17 21:31:56 +0200
commitbdad82ad139c3bedb72d8731dade37a04fdbe11c (patch)
tree03218e42bdaca41fb4b31d92ae6a119109e943ca /mdbp/mmdebstrap.py
parenta2bba9c7c54c09998d5347de5bc1e9e61648365e (diff)
downloadmdbp-bdad82ad139c3bedb72d8731dade37a04fdbe11c.tar.gz
mmdebstrap: don't keep a lintian.deb either
Diffstat (limited to 'mdbp/mmdebstrap.py')
-rw-r--r--mdbp/mmdebstrap.py7
1 files 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)))