summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-08 09:05:24 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-08 09:05:24 +0000
commit7d3b31bca09627ea348a0938e9746afe68332e87 (patch)
tree1e269ede59c41bcda8d141d6c62f46758c7aa636
parentab14e235076f4ad46e8fa1fcd15f7c3786ba867e (diff)
downloadportage-7d3b31bca09627ea348a0938e9746afe68332e87.tar.gz
portage-7d3b31bca09627ea348a0938e9746afe68332e87.tar.bz2
portage-7d3b31bca09627ea348a0938e9746afe68332e87.zip
After loading the environment, make sure the color variables
are in sync with the current NOCOLOR setting. svn path=/main/trunk/; revision=9158
-rwxr-xr-xbin/ebuild.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 8faa68f87..56347fc9d 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1630,6 +1630,18 @@ if ! hasq ${EBUILD_PHASE} clean depend && \
unset x y
export SANDBOX_ON=${PORTAGE_SANDBOX_ON}
unset PORTAGE_SANDBOX_ON
+
+ # After loading the environment, make sure the color variables
+ # are in sync with the current NOCOLOR setting.
+ case "${NOCOLOR:-false}" in
+ yes|true)
+ unset_colors
+ ;;
+ no|false)
+ set_colors
+ ;;
+ esac
+
source_all_bashrcs
fi