Bug 672706 - Yum color option parser does not work or manpage is broken
Summary: Yum color option parser does not work or manpage is broken
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-25 22:59 UTC by abugreporter
Modified: 2014-01-21 23:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-24 21:08:46 UTC
Type: ---


Attachments (Terms of Use)

Description abugreporter 2011-01-25 22:59:25 UTC
Description of problem:
If one reads just man yum.conf it is easy to believe that the line containing color is correct. 

########################
[main]
color
<other main stuff>
#########################

The manpage says:

              color  Display  colorized output automatically, depending on the
              output terminal, always (using ANSI codes) or  never.   Command-
              line option: --color

The first word is in bold and there is no mention of having to assign it a value and if any which are the valid values. Now, I did find where the valid values are documented (man yum), but one should be able to read the manpage to get the grammar that is valid for a configuration file from just one manpage. This manpage fails at this point. So, you can either change the software or you can change the documentation. 

The error you get is something like this: 

CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing errors: file:///etc/yum.conf
	[line 11]: color

Comment 1 Tim Lauridsen 2011-01-27 17:14:41 UTC
every option in yum.conf has the format

option=<value>

So it would be a little strange to think that just typing 'color' would be ok :)

But you are right, it not described in the yum.conf man file, that you should use 
option=<value>, just descriptions of the options and the values.


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