summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-12 02:44:24 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-12 02:44:24 +0000
commit191ef888f86d443e8b10505d0d9876eb91dc065f (patch)
tree8a7528dff7cc20b2cd309f97f94c214748c5d41d /pym
parenta832a5ea8b5c7ff34ebf1a6bd87f5dc3dd58041a (diff)
downloadportage-191ef888f86d443e8b10505d0d9876eb91dc065f.tar.gz
portage-191ef888f86d443e8b10505d0d9876eb91dc065f.tar.bz2
portage-191ef888f86d443e8b10505d0d9876eb91dc065f.zip
Fix ebuild environment color.map support so that it works properly through exec calls (since the color variables can not be directly exported due to env pollution).
svn path=/main/trunk/; revision=5578
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 4bf3a9353..0952bd5f8 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2976,8 +2976,10 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
mysettings["KVERS"]=myso[1]
# Allow color.map to control colors associated with einfo, ewarn, etc...
+ mycolors = []
for c in ("GOOD", "WARN", "BAD", "HILITE", "BRACKET"):
- mysettings[c] = output.codes[c]
+ mycolors.append("%s=$'%s'" % (c, output.codes[c]))
+ mysettings["PORTAGE_COLORMAP"] = "\n".join(mycolors)
def prepare_build_dirs(myroot, mysettings, cleanup):