[Yum-devel] Patch for fastestmirror.py

Luke Macken lmacken at redhat.com
Mon Nov 28 00:47:35 UTC 2005


On Sun, Nov 27, 2005 at 05:30:59PM -0500, seth vidal wrote:
| On Sun, 2005-11-27 at 06:40 -0600, Johnny Hughes wrote:
| > On Sat, 2005-11-26 at 13:05 -0600, Johnny Hughes wrote: 
| > > We were testing fastestmirror.py (version 0.2) for use with CentOS-4.2
| > > and found that it only worked for http mirrors and that the test was
| > > hardwired for port 80.
| > > 
| > > We wanted to also make it work on http (other than 80 if the mirror was
| > > set that way), ftp (21 or other port if set), and pick a file:///path/
| > > as fastest if it exists instead of downloading.
| > > 
| > > The attached patch (on top of version 0.2) did those things for us in
| > > our testing.
| > > 
| > > (patch written by Karanbir Singh)
| > > 
| > We modified the patch slightly to also include https.  Here is the new
| > one.
| 
| Luke, you have any problem integrating his changes to support ftp and
| https?

Nope, seems to work fine.

Thanks Johnny, I merged your patch in along with Panu's caching changes
in 0.2.2:

	http://people.redhat.com/lmacken/fastestmirror.py

luke



More information about the Yum-devel mailing list