[Yum-devel] [PATCH] Lazy initialization of mirror lists
Jeremy Katz
katzj at redhat.com
Mon Apr 16 16:59:21 UTC 2007
On Sun, 2007-04-15 at 13:00 -0400, James Bowes wrote:
> The attached patch makes urls, grab, and grabfunc lazily initialized
> properties on YumRepository. The benefit is that if your repos are using
> mirrorlists, then you only have to fetch the mirrorlists from the server
> if you are doing any operations that will need the network. Previously
> yum would always grab the mirrorlists, in many cases resulting in
> unneeded http connections.
>
> Anyone see any cases where this will break stuff?
The main reason I'd see it breaking is where people expect that the
mirrorlist has already been grabbed.
That said, it's probably okay... it just does have the chance of causing
subtle weirdness for people.
Jeremy
More information about the Yum-devel
mailing list