From a3a415e398ccbc60b4c44ee3c1fb4a847329722e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 21 Oct 2016 10:37:31 +0200 Subject: [PATCH] pungi: Avoid removing from list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/gather.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pungi/gather.py b/pungi/gather.py index e0ad0431..8d703cb1 100644 --- a/pungi/gather.py +++ b/pungi/gather.py @@ -557,15 +557,15 @@ class Pungi(PungiBase): if not pkg_sack: return pkg_sack - for pkg in pkg_sack[:]: + result = [] + for pkg in pkg_sack: if pkg in self.multilib_blacklist: - pkg_sack.remove(pkg) continue if pkg in self.excluded_packages: - pkg_sack.remove(pkg) continue + result.append(pkg) - return pkg_sack + return result def get_package_deps(self, po): """Add the dependencies for a given package to the