hybrid: Don't add debuginfo as langpacks

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-10-17 09:41:21 +02:00
parent 9afb8e6801
commit 736772f954
2 changed files with 11 additions and 0 deletions

View File

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

View File

@ -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,
),
]
}
)