summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-11 05:39:08 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-11 05:39:08 +0000
commitbd011a40b0257c0d279493050745d7be46c397de (patch)
treeca2b91a4a217df63a5461684951a3329e86aeb51
parentWhen spawing the "depend" phase, use file descriptors from sys.std* (diff)
downloadportage-multirepo-bd011a40b0257c0d279493050745d7be46c397de.tar.gz
portage-multirepo-bd011a40b0257c0d279493050745d7be46c397de.tar.bz2
portage-multirepo-bd011a40b0257c0d279493050745d7be46c397de.zip
After loading the environment, make sure the color variables
are in sync with the current NOCOLOR setting. (trunk r9158) svn path=/main/branches/2.1.2/; revision=9170
-rwxr-xr-xbin/ebuild.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 8faa68f8..56347fc9 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