- Make the list we hand off to yum to search for as unique as we can

This commit is contained in:
Jesse Keating 2007-03-02 11:33:01 -05:00 committed by Jesse Keating
parent be44e2527d
commit 7e155b84e1
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
* Fri Mar 02 2007 Jesse Keating <jkeating@redhat.com>
- Add kickstart %packages syntax support to package manifest
- Make the list we hand off to yum to search for as unique as we can
* Wed Feb 28 2007 Jesse Keating <jkeating@redhat.com>
- Update Fedora 7 comps file.

View File

@ -222,6 +222,9 @@ class Gather(yum.YumBase):
for x in range(searchlist.count(exclude)): # why is there no list.removeall?
searchlist.remove(exclude)
# Make the search list unique
searchlist = yum.misc.unique(searchlist)
# Search repos for things in our searchlist, supports globs
(exactmatched, matched, unmatched) = yum.packages.parsePackages(self.pkgSack.returnPackages(), searchlist, casematch=1)
matches = exactmatched + matched