From 5533bf7ca3aba578b3847921c545d3a20493d265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 2 Feb 2017 14:43:36 +0100 Subject: [PATCH] Simplify add_binary_package_deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/gather_dnf.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 53aa7a66..96b7ebe2 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -433,9 +433,7 @@ class Gather(GatherBase): for pkg in self.result_binary_packages.copy(): assert pkg is not None - try: - deps = self.finished_add_binary_package_deps[pkg] - except KeyError: + if pkg not in self.finished_add_binary_package_deps: deps = self._get_package_deps(pkg) for i in deps: if i not in self.result_binary_packages: