From 466ea463005845f1fcc3760407ad2a4d9f75393b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 17 Jun 2008 03:31:43 +0000 Subject: Add support for an new "eblank" elog function that shows a blank line. Consecutive eblank calls are all collapsed into a single blank line. Thanks to Joe Peterson for this patch. svn path=/main/trunk/; revision=10675 --- pym/portage/__init__.py | 2 +- pym/portage/output.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 6b35f1791..45d27aede 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4452,7 +4452,7 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m # Allow color.map to control colors associated with einfo, ewarn, etc... mycolors = [] - for c in ("GOOD", "WARN", "BAD", "HILITE", "BRACKET"): + for c in ("NEUTRAL", "GOOD", "WARN", "BAD", "HILITE", "BRACKET"): mycolors.append("%s=$'%s'" % (c, portage.output.codes[c])) mysettings["PORTAGE_COLORMAP"] = "\n".join(mycolors) diff --git a/pym/portage/output.py b/pym/portage/output.py index a7a500cd4..3c6533106 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -138,6 +138,7 @@ codes["bg_darkyellow"] = codes["bg_brown"] # Colors from /etc/init.d/functions.sh codes["NORMAL"] = esc_seq + "0m" +codes["NEUTRAL"] = codes["lightgray"] codes["GOOD"] = codes["green"] codes["WARN"] = codes["yellow"] codes["BAD"] = codes["red"] -- cgit v1.2.3-1-g7c22