Bug 136288

Summary: Support comments in mirrorlist configuration (2.1.9-1)
Product: [Fedora] Fedora Reporter: Andrew Farris <lordmorgul>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: katzj, lordmorgul
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-21 05:37:25 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:

Description Andrew Farris 2004-10-19 07:06:12 UTC
Regarding yum (2.1.9-1) configuration using:
mirrorlist=url_to_list

The mirror list used may be a remote file and could be maintained as a public
'master mirrorlist'.  Support for commented out baseurls in the list would be
helpful in maintaining it (temporarily bring load off overworked mirrors,
configure them before being active, etc).

Currently yum will complain about 'skipping' a baseurl if a # is found (it is
not a valid url).  Instead, it could silently ignore lines with leading #
characters assuming they are comments or disabled baseurls.

 - cat yum/development.list
#ftp://mirrors.kernel.org/fedora/core/development/$basearch/
ftp://mirror.stanford.edu/pub/mirrors/fedora/linux/core/development/$basearch/

 - yum list updates
not using ftp, http[s], or file for repos, skipping -
#ftp://mirrors.kernel.org/fedora/core/development/i386/
Setting up Repo:  development

Comment 1 Seth Vidal 2004-10-21 05:37:25 UTC
fixed in cvs.
# commented lines are ignored,
however:

http://foo/someplace # this is my foo repo

will be treated as a baseurl that looks like:
"http://foo/somplace # this is my foo repo"

no -inline comments allowed.