[Piuparts-commits] [piuparts] 06/07: p: do not ignore purge errors
Holger Levsen
holger at layer-acht.org
Wed Aug 2 21:12:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 4fe09c0c1fdde5f9d3174f60f4cc00f127bc63fc
Author: Andreas Beckmann <anbe at debian.org>
Date: Tue Aug 1 23:59:41 2017 +0200
p: do not ignore purge errors
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 1 +
piuparts.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index a41d3e7..51c7453 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ piuparts (0.79) UNRELEASED; urgency=medium
[ Andreas Beckmann ]
* piuparts.py:
+ - Do not ignore errors while purging packages.
- Add post_test_* custom scripts. These are run exactly once at the end
of each test (before comparing with the reference chroot state).
* Move some exceptions to {pre,post}_test_exceptions.
diff --git a/piuparts.py b/piuparts.py
index fd697fb..69d8852 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1434,10 +1434,10 @@ class Chroot:
if packages:
self.run(["apt-get", "remove"] + unqualify(packages), ignore_errors=ignore_errors)
- def purge_packages(self, packages):
+ def purge_packages(self, packages, ignore_errors=False):
"""Purge packages in a chroot."""
if packages:
- self.run(["dpkg", "--purge"] + unqualify(packages), ignore_errors=True)
+ self.run(["dpkg", "--purge"] + unqualify(packages), ignore_errors=ignore_errors)
def restore_selections(self, reference_chroot_state, packages_qualified):
"""Restore package selections in a chroot to the state in
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list