[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

James Antill james.antill at redhat.com
Tue Jan 22 16:25:42 UTC 2008


On Tue, 2008-01-22 at 10:54 -0500, Matthew Miller wrote:
> --- /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))

 You can use the --nocheck option, which looks like it should do all of
the above.

>      try:
>          hdr = ts.hdrFromFdno(fdno)
>      except rpm.error, e:
> 
-- 
James Antill <james.antill at redhat.com>
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20080122/c37ae070/attachment.pgp 


More information about the Yum-devel mailing list