[yum-cvs] yum/rpmUtils miscutils.py,1.18,1.19

James Bowes jbowes at linux.duke.edu
Sun Feb 18 14:30:59 UTC 2007


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

Modified Files:
	miscutils.py 
Log Message:
When loading the header for transaction checking, don't check the signature.

rpm will raise an exception when we try to read the header from an fdno, if
we have signature checking turned on and the header's signature is bad or
unknown. At the stage that we're reading the header, we don't care and just want
to get that data.


Index: miscutils.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/miscutils.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- miscutils.py	14 Feb 2007 16:03:56 -0000	1.18
+++ miscutils.py	18 Feb 2007 14:30:57 -0000	1.19
@@ -343,6 +343,8 @@
     except OSError, e:
         raise rpmUtils.RpmUtilsError, 'Unable to open file'
     
+    # XXX: We should start a readonly ts here, so we don't get the options
+    # from the other one (sig checking, etc)
     try:
         hdr = ts.hdrFromFdno(fdno)
     except rpm.error, e:




More information about the Yum-cvs-commits mailing list