From cbe47772c9a4d49027c12f375d4069b4beef4ce5 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 8 Jul 2008 17:57:12 -0400 Subject: [PATCH] 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 --- src/pypungi/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 205e00b0..bc15f0b1 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -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: