[Yum-devel] Selecting mirrors on the "freshness" of their repomd, not just their speed

Tim Lauridsen tim at rasmil.dk
Mon Dec 12 10:32:32 UTC 2005


On Sun, 2005-12-11 at 22:40 +0000, Willem Riede wrote:

> On 12/04/2005 08:57:48 PM, Willem Riede wrote:
> > In  
> > https://www.redhat.com/archives/fedora-test-list/2005-November/msg00610.html  
> > Seth told me that submitting code was the only way to help make the subject  
> > happen, so I created a variant of the fastestmirror plugin that also checks  
> > the age of repomd.xml on the site.
> > 
> > A non-up-to-date mirror, however fast, is not going to get the most recent  
> > updates to me, so it is of less use than a slightly slower, but up-to-date  
> > mirror.
> 
> Observing "bestmirror" in action, I realized that just because a certain host  
> is fast, and has a copy of the latest content for one mirrored site, doesn't  
> mean it is up to date for all sites it mirrors, so the file "timedhosts"  
> that's written out needs to have separate ages for all host-repo=mirror  
> combinations. Also, someone pointed out, that if you move from "fastestmirror"  
> to "bestmirror" reading in the file causes an exception, so I'm now catching  
> that. New version of "bestmirror.py" attached.
> 
> Comments very much appreciated, and also advise about next steps.
> 
> Regards, Willem Riede.
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at linux.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel


I have included both bestmirror and fastestmirror in Yum Extender (aka
yumex).
When i added the latest version of bestmirror.py, i found that it is
failing if the timedhost file not is found.
I have made a patch there fixes the issue.
i have also added a 
if verbose: 
    print e
insted of 
print e

in the urlgrapper Except handler so it is possible to control the
exception output.

Regards,
Tim Lauridsen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.baseurl.org/pipermail/yum-devel/attachments/20051212/657064df/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bestmirror.patch
Type: text/x-patch
Size: 1911 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20051212/657064df/attachment.bin 


More information about the Yum-devel mailing list