[Yum-devel] [PATCH] Ignore private mirror flag if there were failures. BZ 859035

Zdenek Pavlas zpavlas at redhat.com
Mon Sep 24 06:32:42 UTC 2012


> > Prefer private mirrors, but only if they didn't fail recently.
> 
>  This includes 404, right?
>
>  The reason we didn't do this before is that it's pretty common to
>  have a partial private mirror, so we want to ignore any previous 404s on a
> private mirror (but obv. if we can't connect or something, then we'd
> want to remember that).

404 is handled specially in _TH.update().  Does not update mirror 'speed'
but 'fail' is reset to 0 as if the DL was successful- so after 404 it's still
preferred.


More information about the Yum-devel mailing list