pungi: Avoid removing from list
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
48bd3e6d2d
commit
a3a415e398
@ -557,15 +557,15 @@ class Pungi(PungiBase):
|
|||||||
if not pkg_sack:
|
if not pkg_sack:
|
||||||
return pkg_sack
|
return pkg_sack
|
||||||
|
|
||||||
for pkg in pkg_sack[:]:
|
result = []
|
||||||
|
for pkg in pkg_sack:
|
||||||
if pkg in self.multilib_blacklist:
|
if pkg in self.multilib_blacklist:
|
||||||
pkg_sack.remove(pkg)
|
|
||||||
continue
|
continue
|
||||||
if pkg in self.excluded_packages:
|
if pkg in self.excluded_packages:
|
||||||
pkg_sack.remove(pkg)
|
|
||||||
continue
|
continue
|
||||||
|
result.append(pkg)
|
||||||
|
|
||||||
return pkg_sack
|
return result
|
||||||
|
|
||||||
def get_package_deps(self, po):
|
def get_package_deps(self, po):
|
||||||
"""Add the dependencies for a given package to the
|
"""Add the dependencies for a given package to the
|
||||||
|
Loading…
Reference in New Issue
Block a user