summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohnjay <johnjay@localhost>2007-05-04 01:33:48 +0000
committerjohnjay <johnjay@localhost>2007-05-04 01:33:48 +0000
commita91226170186b5d8e8d1ab8dc8ab8ea7a4557eef (patch)
tree95856e3473baae37269897509009933b7eef01d1 /eclass/einput.eclass
parentUpdate ChangeLog for dev-db/pgpool (diff)
downloadtesting-a91226170186b5d8e8d1ab8dc8ab8ea7a4557eef.tar.gz
testing-a91226170186b5d8e8d1ab8dc8ab8ea7a4557eef.tar.bz2
testing-a91226170186b5d8e8d1ab8dc8ab8ea7a4557eef.zip
eclass/einput: Removed portageq call in global context for EINPUT_NOCOLOR
svn path=/testing/; revision=264
Diffstat (limited to 'eclass/einput.eclass')
-rw-r--r--eclass/einput.eclass5
1 files changed, 0 insertions, 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