[Piuparts-devel] [PATCH] remove logrotate (and dependencies) only once

Andreas Beckmann debian at abeckmann.de
Sat Nov 5 21:37:02 UTC 2011


remove the packages installed for the logrotate test only once

Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

---
 piuparts.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/piuparts.py b/piuparts.py
index a731af2..b3d4667 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -915,8 +915,7 @@ class Chroot:
         if not settings.skip_logrotatefiles_test and logrotatefiles:
             installed = self.install_logrotate()
             self.check_output_logrotatefiles(logrotatefiles_list)
-            for pkg in installed:
-                self.remove_or_purge("purge", installed)
+            self.remove_or_purge("purge", installed)
 
         # Then purge all packages being depended on.
         self.remove_or_purge("purge", deps_to_purge)
-- 
tg: (40842a1..) t/fix/purge-logrotate (depends on: develop)



More information about the Piuparts-devel mailing list