#195 koji_utils: debuginfo filter should exclude more packages
Closed: Fixed None Opened 9 years ago by kparal.

In koji_utils we have:

        if not debuginfo:
            rpms = [r for r in rpms if not r['name'].endswith('-debuginfo')]

However, there seem to be some exceptions:

$ yum search debuginfo --enablerepo=fedora-debuginfo | grep debuginfo | grep -v -F -- -debuginfo.
============================ N/S matched: debuginfo ============================
kernel-debuginfo-common-x86_64.x86_64 : Kernel source files used by
                                      : kernel-debuginfo packages
glibc-debuginfo-common.x86_64 : Debug information for package glibc
     ...: updates to installed debuginfo packages

So I guess the code should be

ends with '-debuginfo' or contains '-debuginfo-'

Adjust the code and adjust the unit tests.


This ticket had assigned some Differential requests:
D222

Metadata Update from @kparal:
- Issue tagged with: easyfix

6 years ago

Login to comment on this ticket.

Metadata