diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index c6d069b5..ad60f661 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -298,9 +298,11 @@ class Gather(GatherBase): exclude = set() for pattern in excludes: with Profiler("Gather.add_initial_packages():exclude"): - # TODO: debug, source + # TODO: debug if pattern.endswith(".+"): pkgs = self.q_multilib_binary_packages.filter(name__glob=pattern[:-2]) + elif pattern.endswith(".src"): + pkgs = self.q_source_packages.filter(name__glob=pattern[:-4]) else: pkgs = self.q_binary_packages.filter(name__glob=pattern) @@ -313,6 +315,7 @@ class Gather(GatherBase): self.q_native_binary_packages = self.q_native_binary_packages.filter(pkg__neq=exclude).apply() self.q_multilib_binary_packages = self.q_multilib_binary_packages.filter(pkg__neq=exclude).apply() self.q_noarch_binary_packages = self.q_noarch_binary_packages.filter(pkg__neq=exclude).apply() + self.q_source_packages = self.q_source_packages.filter(pkg__neq=exclude).apply() self.init_query_cache() diff --git a/tests/test_gather.py b/tests/test_gather.py index 09f882a9..f12023a3 100644 --- a/tests/test_gather.py +++ b/tests/test_gather.py @@ -1724,10 +1724,6 @@ class DNFDepsolvingTestCase(DepsolvingBase, unittest.TestCase): def test_kernel_fulltree_excludes(self): pass - @unittest.skip('Not implemented yet') - def test_bash_multilib_exclude_source(self): - pass - if __name__ == "__main__": unittest.main()