[yum-cvs] yum/yum sqlitesack.py,1.47.2.3,1.47.2.4

Seth Vidal skvidal at linux.duke.edu
Wed Feb 21 17:01:40 UTC 2007


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

Modified Files:
      Tag: yum-3_0_X
	sqlitesack.py 
Log Message:
apply patch to fix excludes to 3.0.X



Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.47.2.3
retrieving revision 1.47.2.4
diff -u -r1.47.2.3 -r1.47.2.4
--- sqlitesack.py	3 Feb 2007 21:33:40 -0000	1.47.2.3
+++ sqlitesack.py	21 Feb 2007 17:01:38 -0000	1.47.2.4
@@ -516,11 +516,11 @@
             for (rep, db) in self.primarydb.items():
                 cur = db.cursor()
                 cur.execute(query)
-                res = cur.fetchall()
-                if len(res) > 0:
+                for pkg in cur.fetchall():
+                    if self.excludes[rep].has_key(pkg['pkgId']):
+                        continue
                     unmatched.remove(p)
-                    pos = map(lambda x: self.pc(rep,self.db2class(x,True)), res)
-                    matchres.extend(pos)
+                    matchres.append(self.pc(rep,self.db2class(pkg,True)))                    
 
         exactmatch = misc.unique(exactmatch)
         matched = misc.unique(matched)




More information about the Yum-cvs-commits mailing list