[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.45-75-g5fca52d
Andreas Beckmann
debian at abeckmann.de
Thu Jul 26 12:13:24 UTC 2012
The following commit has been merged in the piatti branch:
commit 72d9e0b21d0ced6e0773cc6deddac87cb24a4402
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Sat Jul 7 22:30:18 2012 +0200
p: remove version qualification when removing/purging packages
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts.py b/piuparts.py
index 7134ddd..12e632a 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -1125,11 +1125,13 @@ class Chroot:
def remove_packages(self, packages):
"""Remove packages in a chroot."""
if packages:
+ packages = [p.split("=", 1)[0].strip() for p in packages]
self.run(["apt-get", "remove"] + packages, ignore_errors=True)
def purge_packages(self, packages):
"""Purge packages in a chroot."""
if packages:
+ packages = [p.split("=", 1)[0].strip() for p in packages]
self.run(["dpkg", "--purge"] + packages, ignore_errors=True)
def restore_selections(self, selections, packages):
--
piuparts git repository
More information about the Piuparts-commits
mailing list