diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 462969eb..b3ea59ce 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -34,6 +34,9 @@ class GatherOptions(pungi.common.OptionsBase): # include all unused sub-packages of already included RPMs self.fulltree = False + # A set of packages for which fulltree does not apply. + self.fulltree_excludes = set() + # include langpacks self.langpacks = [] # format: [{"package": "langpack-pattern-%s"}] @@ -573,6 +576,10 @@ class Gather(GatherBase): for pkg in sorted(self.result_binary_packages): assert pkg is not None + if pkg.source_name in self.opts.fulltree_excludes: + self.logger.debug('No fulltree for %s due to exclude list', pkg) + continue + try: fulltree_pkgs = self.finished_add_fulltree_packages[pkg] except KeyError: diff --git a/tests/test_gather.py b/tests/test_gather.py index 634d6948..01affbf0 100644 --- a/tests/test_gather.py +++ b/tests/test_gather.py @@ -1712,10 +1712,6 @@ class DNFDepsolvingTestCase(DepsolvingBase, unittest.TestCase): def test_input_by_wildcard(self): pass - @unittest.skip('Not implemented yet') - def test_kernel_fulltree_excludes(self): - pass - if __name__ == "__main__": unittest.main()