Find %name-debuginfo-common-%arch debuginfo files.

This commit is contained in:
Daniel Mach 2012-04-02 08:26:49 -04:00 committed by Dennis Gilmore
parent 9d7f82d91a
commit aa401cc49b

View File

@ -657,16 +657,21 @@ class Pungi(pypungi.PungiBase):
self.debuginfolist.append(srcresults[0]) self.debuginfolist.append(srcresults[0])
if po.name == 'kernel' or po.name == 'glibc': if po.name == 'kernel' or po.name == 'glibc':
# %name-debuginfo-common
debugcommon = '%s-debuginfo-common' % po.name debugcommon = '%s-debuginfo-common' % po.name
commonresults = self.ayum.pkgSack.searchNevra(name=debugcommon, # %name-debuginfo-common-%arch
epoch=po.epoch, debugcommon_arch = "%s-%s" % (debugcommon, po.arch)
ver=po.version,
rel=po.release, for name in (debugcommon, debugcommon_arch):
arch=po.arch) commonresults = self.ayum.pkgSack.searchNevra(name=name,
if commonresults: epoch=po.epoch,
if not commonresults[0] in self.debuginfolist: ver=po.version,
self.logger.debug('Added %s found by common' % commonresults[0].name) rel=po.release,
self.debuginfolist.append(commonresults[0]) arch=po.arch)
if commonresults:
if not commonresults[0] in self.debuginfolist:
self.logger.debug('Added %s found by common' % commonresults[0].name)
self.debuginfolist.append(commonresults[0])
def _downloadPackageList(self, polist, relpkgdir): def _downloadPackageList(self, polist, relpkgdir):
"""Cycle through the list of package objects and """Cycle through the list of package objects and