diff --git a/pungi/phases/gather/methods/method_hybrid.py b/pungi/phases/gather/methods/method_hybrid.py index faec83ef..f18f2a6d 100644 --- a/pungi/phases/gather/methods/method_hybrid.py +++ b/pungi/phases/gather/methods/method_hybrid.py @@ -138,6 +138,8 @@ class GatherMethodHybrid(pungi.phases.gather.method.GatherMethodBase): continue if pkg.name.endswith("-devel") or pkg.name.endswith("-static"): continue + if pkg_is_debug(pkg): + continue self.langpacks[name].add(pkg.name) def __call__( diff --git a/tests/test_gather_method_hybrid.py b/tests/test_gather_method_hybrid.py index 354241f0..218b1a2a 100644 --- a/tests/test_gather_method_hybrid.py +++ b/tests/test_gather_method_hybrid.py @@ -120,6 +120,15 @@ class TestMethodHybrid(helpers.PungiTestCase): sourcerpm=None, file_path=None, ), + MockPkg( + name="foo-debuginfo", + version="1", + release="2", + arch="x86_64", + epoch=0, + sourcerpm=None, + file_path=None, + ), ] } )