Red Hat Bugzilla – Bug 136288
Support comments in mirrorlist configuration (2.1.9-1)
Last modified: 2014-01-21 17:50:24 EST
Regarding yum (2.1.9-1) configuration using:
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
- yum list updates
not using ftp, http[s], or file for repos, skipping -
Setting up Repo: development
fixed in cvs.
# commented lines are ignored,
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.