Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 123826 Details for
Bug 183861
Colors support improvements
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to pym/portage/output.py
pym_portage_output.py.patch (text/plain), 3.22 KB, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2007-07-03 21:01:37 UTC
(
hide
)
Description:
Patch to pym/portage/output.py
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2007-07-03 21:01:37 UTC
Size:
3.22 KB
patch
obsolete
>Index: pym/portage/output.py >=================================================================== >--- pym/portage/output.py (wersja 7141) >+++ pym/portage/output.py (kopia robocza) >@@ -73,6 +73,7 @@ > codes["underline"] = esc_seq + "04m" > codes["blink"] = esc_seq + "05m" > codes["overline"] = esc_seq + "06m" # Who made this up? Seriously. >+codes["reverse"] = esc_seq + "07m" > > ansi_color_codes = [] > for x in xrange(30, 38): >@@ -119,6 +120,15 @@ > codes["fuscia"] = codes["fuchsia"] > codes["white"] = codes["bold"] > >+codes["bg_black"] = esc_seq + "40m" >+codes["bg_red"] = esc_seq + "41m" >+codes["bg_green"] = esc_seq + "42m" >+codes["bg_brown"] = esc_seq + "43m" >+codes["bg_blue"] = esc_seq + "44m" >+codes["bg_magenta"] = esc_seq + "45m" >+codes["bg_cyan"] = esc_seq + "46m" >+codes["bg_white"] = esc_seq + "47m" >+ > # Colors from /sbin/functions.sh > codes["GOOD"] = codes["green"] > codes["WARN"] = codes["yellow"] >@@ -127,18 +137,22 @@ > codes["BRACKET"] = codes["blue"] > > # Portage functions >-codes["INFORM"] = codes["darkgreen"] >-codes["UNMERGE_WARN"] = codes["red"] >-codes["SECURITY_WARN"] = codes["red"] >-codes["MERGE_LIST_PROGRESS"] = codes["yellow"] >-codes["PKG_MERGE"] = codes["darkgreen"] >-codes["PKG_MERGE_ARG"] = codes["darkgreen"] >-codes["PKG_MERGE_SYSTEM"] = codes["green"] >-codes["PKG_MERGE_WORLD"] = codes["green"] >-codes["PKG_NOMERGE"] = codes["darkblue"] >-codes["PKG_NOMERGE_ARG"] = codes["darkblue"] >-codes["PKG_NOMERGE_SYSTEM"] = codes["blue"] >-codes["PKG_NOMERGE_WORLD"] = codes["blue"] >+codes["INFORM"] = codes["darkgreen"] >+codes["UNMERGE_WARN"] = codes["red"] >+codes["SECURITY_WARN"] = codes["red"] >+codes["MERGE_LIST_PROGRESS"] = codes["yellow"] >+codes["PKG_MERGE"] = codes["darkgreen"] >+codes["PKG_MERGE_ARG"] = codes["darkgreen"] >+codes["PKG_MERGE_SYSTEM"] = codes["green"] >+codes["PKG_MERGE_WORLD"] = codes["green"] >+codes["PKG_MERGE_ARG_SYSTEM"] = codes["green"] >+codes["PKG_MERGE_ARG_WORLD"] = codes["green"] >+codes["PKG_NOMERGE"] = codes["darkblue"] >+codes["PKG_NOMERGE_ARG"] = codes["darkblue"] >+codes["PKG_NOMERGE_SYSTEM"] = codes["blue"] >+codes["PKG_NOMERGE_WORLD"] = codes["blue"] >+codes["PKG_NOMERGE_ARG_SYSTEM"] = codes["blue"] >+codes["PKG_NOMERGE_ARG_WORLD"] = codes["blue"] > > def parse_color_map(): > myfile = COLOR_MAP_FILE >@@ -159,13 +173,17 @@ > raise ParseError("%s%s'%s'" % (s.error_leader(myfile, s.lineno), "expected '=' operator: ", o)) > k = strip_quotes(k, s.quotes) > v = strip_quotes(v, s.quotes) >+ if not k in codes: >+ print ParseError("%s%s'%s'" % (s.error_leader(myfile, s.lineno), "Unknown variable: ", k)) >+ continue > if ansi_code_pattern.match(v): > codes[k] = esc_seq + v > else: >- if v in codes: >- codes[k] = codes[v] >- else: >- raise ParseError("%s%s'%s'" % (s.error_leader(myfile, s.lineno), "Undefined: ", v)) >+ for x in v.split(" "): >+ if x in codes: >+ codes[k] = codes[k] + codes[x] >+ else: >+ print ParseError("%s%s'%s'" % (s.error_leader(myfile, s.lineno), "Undefined: ", x)) > except (IOError, OSError), e: > if e.errno == errno.ENOENT: > raise FileNotFound(myfile)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 183861
:
123826
|
124064