Simplify add_multilib_package method

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-01-20 09:07:12 +01:00
parent cd80d6ef5a
commit a9415eb0e5

View File

@ -688,9 +688,8 @@ class Gather(GatherBase):
added = set() added = set()
for pkg in sorted(self.result_binary_packages): for pkg in sorted(self.result_binary_packages):
try: if pkg in self.finished_add_multilib_packages:
self.finished_add_multilib_packages[pkg] continue
except KeyError:
if pkg.arch in ("noarch", "src", "nosrc"): if pkg.arch in ("noarch", "src", "nosrc"):
self.finished_add_multilib_packages[pkg] = None self.finished_add_multilib_packages[pkg] = None