[yum-cvs] yum/yum sqlitesack.py,1.60,1.61

Seth Vidal skvidal at linux.duke.edu
Fri Feb 23 07:26:49 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv1450

Modified Files:
	sqlitesack.py 
Log Message:

keep from tripping over an empty list


Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- sqlitesack.py	23 Feb 2007 05:52:14 -0000	1.60
+++ sqlitesack.py	23 Feb 2007 07:26:46 -0000	1.61
@@ -514,6 +514,7 @@
         matched = []
         exactmatch = []
         unmatched = list(pkgspecs)
+
         for p in pkgspecs:
             if re.match('[\*\?\[\]]', p):
                 query = PARSE_QUERY % ({ "op": "glob", "q": p })
@@ -528,7 +529,8 @@
                 for pkg in cur.fetchall():
                     if self.excludes[rep].has_key(pkg['pkgId']):
                         continue
-                    unmatched.remove(p)
+                    if p in unmatched:
+                        unmatched.remove(p)
                     matchres.append(self.pc(rep,self.db2class(pkg,True)))
 
         exactmatch = misc.unique(exactmatch)




More information about the Yum-cvs-commits mailing list