[yum-cvs] yum/yum misc.py,1.9,1.10

Seth Vidal skvidal at login.linux.duke.edu
Sat Feb 26 09:11:58 UTC 2005


Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv23260/yum

Modified Files:
	misc.py 
Log Message:

make the gpgkey importer check the rpmdb in the installroot if specified.


Index: misc.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/misc.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- misc.py	24 Feb 2005 07:44:52 -0000	1.9
+++ misc.py	26 Feb 2005 09:11:56 -0000	1.10
@@ -223,11 +223,12 @@
     return "%08x" % (keyid & 0xffffffffL)
 
 
-def keyInstalled(keyid, timestamp):
+def keyInstalled(ts, keyid, timestamp):
     '''Return if the GPG key described by the given keyid and timestamp are
     installed in the rpmdb.  
 
     The keyid and timestamp should both be passed as integers.
+    The ts is an rpm transaction set object
 
     Return values:
         -1      key is not installed
@@ -241,10 +242,6 @@
     # Convert key id to 'RPM' form
     keyid = keyIdToRPMVer(keyid)
 
-    # Init transaction
-    ts = rpmUtils.transaction.initReadOnlyTransaction()
-    ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
-
     # Search
     for hdr in ts.dbMatch('name', 'gpg-pubkey'):
         if hdr['version'] == keyid:




More information about the Yum-cvs-commits mailing list