Change _filtersrc to _filtersrcdebug and call it appropriately.

We now need to filter out debuginfo packages so that we can add the
debuginfo repos to the ks file
This commit is contained in:
Jesse Keating 2008-07-08 17:57:12 -04:00
parent 3cc980b49d
commit cbe47772c9
1 changed files with 3 additions and 3 deletions

View File

@ -207,10 +207,10 @@ class Pungi(pypungi.PungiBase):
self.logger.info('Getting sacks for arches %s' % arches)
self.ayum._getSacks(archlist=arches)
def _filtersrc(self, po):
def _filtersrcdebug(self, po):
"""Filter out package objects that are of 'src' arch."""
if po.arch == 'src':
if po.arch == 'src' or 'debuginfo' in po.name:
return False
return True
@ -337,7 +337,7 @@ class Pungi(pypungi.PungiBase):
# Search repos for things in our searchlist, supports globs
(exactmatched, matched, unmatched) = yum.packages.parsePackages(self.ayum.pkgSack.returnPackages(), searchlist, casematch=1)
matches = filter(self._filtersrc, exactmatched + matched)
matches = filter(self._filtersrcdebug, exactmatched + matched)
# Populate a dict of package objects to their names
for match in matches: