Handle fulltree_excludes list

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-01-17 16:15:26 +01:00
parent 9a1674f3bf
commit 9fd8e6319f
2 changed files with 7 additions and 4 deletions

View File

@ -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:

View File

@ -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()