[yum-cvs] yum/yum constants.py,1.13,1.14 sqlitesack.py,1.93,1.94

James Bowes jbowes at linux.duke.edu
Tue Apr 10 22:29:04 UTC 2007


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

Modified Files:
	constants.py sqlitesack.py 
Log Message:
Go up to database version 10

Index: constants.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/constants.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- constants.py	23 Feb 2007 05:52:14 -0000	1.13
+++ constants.py	10 Apr 2007 22:29:02 -0000	1.14
@@ -72,7 +72,7 @@
 PLUG_OPT_WHERE_ALL = 2
 
 # version of sqlite database schemas
-DBVERSION = '9'
+DBVERSION = '10'
 
 # boolean dict:
 BOOLEAN_STATES = {'1': True, 'yes': True, 'true': True, 'on': True,

Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- sqlitesack.py	8 Apr 2007 21:40:41 -0000	1.93
+++ sqlitesack.py	10 Apr 2007 22:29:02 -0000	1.94
@@ -71,7 +71,7 @@
                 pass
 
         try:
-            self._checksums.append((db_obj['checksum_type'], db_obj['checksum_value'], True))
+            self._checksums.append((db_obj['checksum_type'], db_obj['pkgId'], True))
         except (IndexError, KeyError):
             pass
 
@@ -159,7 +159,7 @@
     
         
     def returnIdSum(self):
-            return (self.checksum_type, self.checksum_value)
+            return (self.checksum_type, self.pkgId)
     
     def returnChangelog(self):
         self._loadChangelog()
@@ -539,7 +539,7 @@
         y.hdrange = {'start': db['rpm_header_start'],'end': db['rpm_header_end']}
         y.location = {'href': db['location_href'],'value': '', 'base': db['location_base']}
         y.checksum = {'pkgid': 'YES','type': db['checksum_type'], 
-                    'value': db['checksum_value'] }
+                    'value': db['pkgId'] }
         y.time = {'build': db['time_build'], 'file': db['time_file'] }
         y.size = {'package': db['size_package'], 'archive': db['size_archive'], 'installed': db['size_installed'] }
         y.info = {'summary': db['summary'], 'description': db['description'],




More information about the Yum-cvs-commits mailing list