Bug 136288 - Support comments in mirrorlist configuration (2.1.9-1)
Summary: Support comments in mirrorlist configuration (2.1.9-1)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-19 07:06 UTC by Andrew Farris
Modified: 2014-01-21 22:50 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-10-21 05:37:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.



Note You need to log in before you can comment on or make changes to this bug.