Summary: | sys-apps/portage - some text output cannot be colorized differently via /etc/portage/color.map | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Component: | [OLD] Core system | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | bugs+gentoo |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 210077, 288499 | ||
Attachments: |
Patch for portage.output to fix some bugs/add requested feature
Patch for portage.output to fix some bugs/add requested feature Patch for portage.output to fix some bugs/add requested feature |
Description
Lars Wendler (Polynomial-C) (RETIRED)
![]() 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. |