[yum-cvs] yum/yum sqlitesack.py,1.71,1.72

Seth Vidal skvidal at linux.duke.edu
Wed Feb 28 13:00:04 UTC 2007


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

Modified Files:
	sqlitesack.py 
Log Message:

- fix traceback found by Tim
- kill of the last of the db2class calls


Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- sqlitesack.py	28 Feb 2007 07:19:51 -0000	1.71
+++ sqlitesack.py	28 Feb 2007 13:00:02 -0000	1.72
@@ -399,10 +399,9 @@
             cur = cache.cursor()
             executeSQL(cur, "select packages.* from files,packages where files.name = ? and files.pkgKey = packages.pkgKey" , (name,))
             for x in cur.fetchall():
-                pkg = self.db2class(x)
-                if self._excluded(rep,pkg.pkgId):
+                if self._excluded(rep,x['pkgId']):
                     continue
-                results.append(self.pc(rep,pkg))
+                results.append(self.pc(rep,x))
 
         matched = 0
         globs = ['.*bin\/.*', '^\/etc\/.*', '^\/usr\/lib\/sendmail$']




More information about the Yum-cvs-commits mailing list