From a91226170186b5d8e8d1ab8dc8ab8ea7a4557eef Mon Sep 17 00:00:00 2001 From: johnjay Date: Fri, 4 May 2007 01:33:48 +0000 Subject: eclass/einput: Removed portageq call in global context for EINPUT_NOCOLOR svn path=/testing/; revision=264 --- eclass/einput.eclass | 5 ----- 1 file changed, 5 deletions(-) diff --git a/eclass/einput.eclass b/eclass/einput.eclass index 5cc113e..1079037 100644 --- a/eclass/einput.eclass +++ b/eclass/einput.eclass @@ -52,11 +52,6 @@ EINPUT_IANSWER="" # Set EINPUT_NOCOLOR to "0" to disable colorized output, or "1" to allow it. # After inheriting this eclass ebuilds may set this var directly, but it's # preferred to rely on the value supplied here by portageq. -if [[ "$(portageq envvar NOCOLOR 2>/dev/null)" =~ "true|yes" ]] ; then - EINPUT_NOCOLOR=1 -else - EINPUT_NOCOLOR=0 -fi [[ "$(${ROOT}/sbin/consoletype 2> /dev/null)" == "serial" || $EINPUT_NOCOLOR == 1 ]] && unset BOLD NORMAL BLUE BROWN DARKBLUE DARKGREEN DARKRED FUCHSIA GREEN \ PURPLE RED TEAL TURQUOISE YELLOW EINPUT_COLORS -- cgit v1.2.3-65-gdbad