Hi, as already mentioned in #-portage I tried to change all text output which is colorized in yellow by default to get printed in purple color. So I created the file /etc/portage/color.map with the following content: yellow=purple This turns most yellow text output into purple but not everything. For example the output of >>> Emerging (1 of 5) media-libs/ilmbase-1.0.1 still has the numbers in "(1 of 5)" printed in yellow color. Marking this bug as minor since it doesn't break functionality in portage. P.S.: setting 'MERGE_LIST_PROGRESS = "purple"' in color.map turns the remaining yellow text output into purple as well... Reproducible: Always Steps to Reproduce:
Created attachment 194878 [details, diff] Patch for portage.output to fix some bugs/add requested feature FIX: Syntax error in color.map makes every user of portage.output irrecoverably crash. FIX: Allow multiple tokens on the rhs in color.map like the man page says. FIX: Add missing attributes to man page FEATURE: allow attributes to be overridden in color.map
(In reply to comment #1) > Created an attachment (id=194878) [edit] > Patch for portage.output to fix some bugs/add requested feature Patch looks pretty good. The only problem I noticed was that it doesn't ignore comment lines (starting with #) like the shlex parser does. > FIX: Allow multiple tokens on the rhs in color.map like the man page says. > FIX: Add missing attributes to man page Then man page changes are in svn now. I'll commit the rest after the comment issue is fixed.
Created attachment 194930 [details, diff] Patch for portage.output to fix some bugs/add requested feature -removed some debug output -patch against revision 13642
Created attachment 194938 [details, diff] Patch for portage.output to fix some bugs/add requested feature -re-add the ability to assign ansi code patterns to variables (it worked for attributes and it worked without ths patch) -document the ability to assign ansi code patterns -remove remaining debug output
(In reply to comment #2) > (In reply to comment #1) > > Created an attachment (id=194878) [edit] > > Patch for portage.output to fix some bugs/add requested feature > Patch looks pretty good. The only problem I noticed was that it doesn't ignore > comment lines (starting with #) like the shlex parser does. This works here (in all versions of the patch). + commenter_pos = line.find("#") + line = line[:commenter_pos].strip() is supposed to do it.
(In reply to comment #4) > Created an attachment (id=194938) [edit] > Patch for portage.output to fix some bugs/add requested feature Thanks, that's in svn r13643.
This is fixed in 2.2_rc34.
This is fixed in 2.1.7.