From 7e155b84e178241fca71e5021ee85ba4e46d1580 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 2 Mar 2007 11:33:01 -0500 Subject: [PATCH] - Make the list we hand off to yum to search for as unique as we can --- Changelog | 1 + pypungi/gather.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Changelog b/Changelog index 3639507b..a334a188 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ * Fri Mar 02 2007 Jesse Keating - 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 - Update Fedora 7 comps file. diff --git a/pypungi/gather.py b/pypungi/gather.py index 21ea9651..0ce57237 100755 --- a/pypungi/gather.py +++ b/pypungi/gather.py @@ -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