[Yum-devel] makecache process

seth vidal skvidal at phy.duke.edu
Sat Nov 5 13:10:10 UTC 2005


On Sat, 2005-11-05 at 11:12 +0100, Gijs Hollestelle wrote:
> On 11/4/05, seth vidal <skvidal at phy.duke.edu> wrote:
> > Hey folks,
> > A simple yum-util that would do a cache update from cron every N hours.
> > Then modify yum so that if repomd.xml (or a variable inside it) is < N
> > hours old then assume that repo is current and use the local store of
> > it.
> Hi Seth,
> 
> I think it would be wise to make sure that the cache that is generated
> is for the same mirror as that will be used later, because mirrors are
> often out of sync. In other words we have to make sure that the mirror
> that was selected when the cache was created is guaranteed to be the
> same as the one that will be used when yum is ran.

So Lewk Macken has provided us with somewhat of a way out of that. His
fastest mirror plugin should help. It might not be foolproof but in a
number of the cases the mirror should be the same.

I guess the other option is we could download and store the mirrorlist
(if there is one in the repo stanza) and treat downloading the
mirrorlist the same as downloading the repomd.xml.

Then we could be assured of the ordering of the list. However, we're
talking about a fair bit more code now.

What do folks think?

-sv





More information about the Yum-devel mailing list