From cd80d6ef5a6bde7a4f30c61de4d1ef9e217a8690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 20 Jan 2017 09:05:09 +0100 Subject: [PATCH] Stop caching provides of added packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This only works in non-greedy mode. When greedy, the same provides can be linked to multiple packages that should be pulled in. Signed-off-by: Lubomír Sedlář --- pungi/gather_dnf.py | 6 ------ tests/test_gather.py | 8 -------- 2 files changed, 14 deletions(-) diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 0b698a85..bc8f1947 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -269,12 +269,6 @@ class Gather(GatherBase): if i.repoid in self.opts.lookaside_repos: self._set_flag(i, PkgFlag.lookaside) - for pkg in added: - if pkg is None: - continue - for prov in pkg.provides: - self.finished_get_package_deps_reqs.setdefault(str(prov), set()).add(pkg) - self.result_binary_packages.update(added) def _get_package_deps(self, pkg): diff --git a/tests/test_gather.py b/tests/test_gather.py index 06ffb4e5..d40e1b71 100644 --- a/tests/test_gather.py +++ b/tests/test_gather.py @@ -1709,14 +1709,6 @@ class DNFDepsolvingTestCase(DepsolvingBase, unittest.TestCase): def test_bash_older(self): pass - @unittest.skip('Not implemented yet') - def test_smtpdaemon_greedy_all_explicit_sendmail(self): - pass - - @unittest.skip('Not implemented yet') - def test_smtpdaemon_greedy_all_explicit_postfix(self): - pass - @unittest.skip('Not implemented yet') def test_requires_pre_post(self): pass