PR#524: Add support for debugsource

Merges #524
https://pagure.io/koji/pull-request/524
This commit is contained in:
Mike McLean 2017-08-03 12:19:09 -04:00
commit 658953af54

View file

@ -1052,9 +1052,8 @@ def _check_NVRA(nvra):
def is_debuginfo(name):
"""Determines if an rpm is a debuginfo rpm, based on name"""
if name.endswith('-debuginfo') or name.find('-debuginfo-') != -1:
return True
return False
return (name.endswith('-debuginfo') or name.endswith('-debugsource') or
'-debuginfo-' in name)
def canonArch(arch):
"""Given an arch, return the "canonical" arch"""