Use yum's built in exclude handling
This commit is contained in:
parent
e2c43c0a93
commit
938113eebe
@ -1,3 +1,6 @@
|
|||||||
|
* Thu Mar 15 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
|
- Use yum's built in exclude handling
|
||||||
|
|
||||||
* Tue Mar 14 2007 Jesse Keating <jkeating@redhat.com>
|
* Tue Mar 14 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
- Do things faster/smarter if we've only asked for one disc
|
- Do things faster/smarter if we've only asked for one disc
|
||||||
|
|
||||||
|
@ -218,9 +218,8 @@ class Gather(yum.YumBase):
|
|||||||
searchlist.extend(addlist)
|
searchlist.extend(addlist)
|
||||||
|
|
||||||
# Remove the excludes
|
# Remove the excludes
|
||||||
for exclude in excludelist:
|
self.conf.exclude.extend(excludelist)
|
||||||
for x in range(searchlist.count(exclude)): # why is there no list.removeall?
|
self.excludePackages()
|
||||||
searchlist.remove(exclude)
|
|
||||||
|
|
||||||
# Make the search list unique
|
# Make the search list unique
|
||||||
searchlist = yum.misc.unique(searchlist)
|
searchlist = yum.misc.unique(searchlist)
|
||||||
|
Loading…
Reference in New Issue
Block a user