[Piuparts-devel] Bug#638832: [PATCH] remove logrotate (and dependencies) only once

Andreas Beckmann debian at abeckmann.de
Wed Nov 9 10:12:44 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 4f0d35b..4fffbd6 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -916,8 +916,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)
-- 
1.7.7.1






More information about the Piuparts-devel mailing list