[yum-cvs] yum/yum sqlitesack.py,1.47.2.5,1.47.2.6

Seth Vidal skvidal at linux.duke.edu
Fri Mar 9 15:47:17 UTC 2007


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

Modified Files:
      Tag: yum-3_0_X
	sqlitesack.py 
Log Message:

make sure we don't remove an item from a list if it is not there.
fixes rh bug: 231535


Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.47.2.5
retrieving revision 1.47.2.6
diff -u -r1.47.2.5 -r1.47.2.6
--- sqlitesack.py	24 Feb 2007 08:09:39 -0000	1.47.2.5
+++ sqlitesack.py	9 Mar 2007 15:47:15 -0000	1.47.2.6
@@ -519,7 +519,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