Skip to content

Commit

Permalink
debuginfo-install: fix handling of subpackages with non-zero epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
pspacek authored and radekholy24 committed Feb 2, 2015
1 parent 40cd183 commit f1b482d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/debuginfo-install.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def run(self, args):
@staticmethod
def _pkgname_src(package):
"""get source package name without debuginfo suffix, e.g. krb5"""
return package.sourcerpm.replace("-{}.src.rpm".format(package.evr), "")
name = package.sourcerpm.replace("-{}.src.rpm".format(package.evr), "")
# source package names usually do not contain epoch, handle both cases
return name.replace("-{0.version}-{0.release}.src.rpm".format(package),
"")

@classmethod
def _pkgname_dbg(cls, package):
Expand Down

0 comments on commit f1b482d

Please sign in to comment.