handle debugsource same way as debuginfo packages

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-07-26 09:27:01 +02:00 committed by Mike McLean
parent 9c4348e55b
commit 7a3bf2791e

View file

@ -1052,7 +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:
if name.endswith('-debuginfo') or name.endswith('-debugsource') or \
name.find('-debuginfo-') != -1:
return True
return False