Bug 509479

Summary: RFE: [PATCH] yum-plugin-fastestmirror - add option for "preferred" mirror
Product: [Fedora] Fedora Reporter: Joel Michael <joel>
Component: yum-utilsAssignee: Luke Macken <lmacken>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 11CC: james.antill, lmacken, maxamillion, pfrields, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-08 06:24:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Add a preferred mirror option to yum-plugin-fastestmirror none

Description Joel Michael 2009-07-03 02:30:13 UTC
Created attachment 350369 [details]
Add a preferred mirror option to yum-plugin-fastestmirror

Description of problem:
When using yum-plugin-fastestmirror, it currently selects only the "fastest" mirror.  I have a mirror available to me that does not count towards my download quota, and I would prefer to use that one if possible, even though it might not be the fastest.

Version-Release number of selected component (if applicable):
Name        : yum-plugin-fastestmirror
Version     : 1.1.22
Release     : 1.fc11

How reproducible:
Always

Steps to Reproduce:
1.  # yum clean all; yum list updates
  
Actual results:
yum-fastestmirror selects the fastest mirror

Expected results:
yum-fastestmirror selects the mirror I want it to use if available.  If my preferred mirror is not available, or I don't care what mirror it should use, it will continue to use the fastest mirror.

Additional info:
Patch attached.  It only supports a single preferred mirror.

Comment 1 Luke Macken 2009-07-08 06:24:16 UTC
Applied in 50cc1aad123bf5a0197a478d733c14b2241cd577

Thanks for the patch!

Comment 2 Fedora Update System 2009-09-02 12:44:19 UTC
yum-utils-1.1.23-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/yum-utils-1.1.23-1.fc10

Comment 3 Fedora Update System 2009-09-02 12:44:33 UTC
yum-utils-1.1.23-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/yum-utils-1.1.23-1.fc11

Comment 4 Fedora Update System 2009-10-09 03:36:27 UTC
yum-utils-1.1.23-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.