[PATCH] Disable drpms for local repositories. BZ 1007097
James Antill
james at fedoraproject.org
Mon Sep 16 04:29:50 UTC 2013
On Fri, 2013-09-13 at 05:02 -0400, Zdenek Pavlas wrote:
> While slower than local disk, typical NFS is still way faster than
> drpm rebuild speed.
Ok.
> > Maybe have the logic be "if the user hasn't configured
> > deltarpm_percentage
>
> Yes, per-repo option should be used first. Is there a better check
> than the obvious "ayum.conf.option != repo.option" to tell it was
> overriden?
The only way I can remember off hand is to set the "default" to
something that the user can't set (there is no validation on the
defaults), and then trigger off that when you use it to do a dynamic
default.
The "big" problem there is if something decides to save that back to
disk, yum will spit out config. parsing errors.
The way to workaround that has been to make the weird thing a valid
input as well, Eg. <forever> in retries.
But doing the test you mentioned is probably good enough.
More information about the Yum-devel
mailing list