From 33fb63036aa9a930f8aba56c791ef56296475922 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 19 Mar 2006 06:14:31 +0000 Subject: Add NOCOLOR support to ebuild.sh and make emerge automatically add NOCOLOR to portage.settings when --nocolor is specified. See bug #126756. svn path=/main/trunk/; revision=2952 --- bin/ebuild.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 40c788a88..791625c6d 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -51,8 +51,16 @@ export PATH="/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:${ROOTPATH}" [ ! -z "$PREROOTPATH" ] && export PATH="${PREROOTPATH%%:}:$PATH" source /usr/lib/portage/bin/isolated-functions.sh &>/dev/null -# TODO: make this conditional on config settings, fix any remaining stuff -set_colors + +case "${NOCOLOR:-false}" in + yes|true) + unset_colors + ;; + no|false) + set_colors + ;; +esac + # the sandbox is disabled by default except when overridden in the relevant stages export SANDBOX_ON="0" -- cgit v1.2.3-1-g7c22