remove the packages installed for the logrotate test only once

Signed-off-by: Andreas Beckmann <deb...@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




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to