[Yum-devel] repomanage: this may not be the right thing to do, but it still results in a 4x or greater speedup for repomanage -o

Matthew Miller mattdm at mattdm.org
Tue Jan 22 15:54:47 UTC 2008


--- /usr/bin/repomanage	2008-01-11 10:06:43.000000000 -0500
+++ repomanage.munged	2008-01-22 10:51:48.000000000 -0500
@@ -70,6 +70,7 @@
         fdno = os.open(package, os.O_RDONLY)
     except OSError, e:
         raise Error, "Error opening file %s" % package
+    ts.setVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD))
     try:
         hdr = ts.hdrFromFdno(fdno)
     except rpm.error, e:

-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>



More information about the Yum-devel mailing list