[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.45-56-gf60418b

Andreas Beckmann debian at abeckmann.de
Wed Jul 18 19:28:36 UTC 2012


The following commit has been merged in the develop 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