From 938113eebe2f393410aff39b58b4abbd0be1102a Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Thu, 15 Mar 2007 13:29:57 -0400 Subject: [PATCH] Use yum's built in exclude handling --- Changelog | 3 +++ pypungi/gather.py | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index 9c8a0ac5..d30b9260 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Thu Mar 15 2007 Jesse Keating +- Use yum's built in exclude handling + * Tue Mar 14 2007 Jesse Keating - Do things faster/smarter if we've only asked for one disc diff --git a/pypungi/gather.py b/pypungi/gather.py index 0ce57237..c735fbbf 100755 --- a/pypungi/gather.py +++ b/pypungi/gather.py @@ -218,9 +218,8 @@ class Gather(yum.YumBase): searchlist.extend(addlist) # Remove the excludes - for exclude in excludelist: - for x in range(searchlist.count(exclude)): # why is there no list.removeall? - searchlist.remove(exclude) + self.conf.exclude.extend(excludelist) + self.excludePackages() # Make the search list unique searchlist = yum.misc.unique(searchlist)