From 20b0fdd6910d094b829a16c54a97f8d2900e00de Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 11 Sep 2011 18:24:48 -0700 Subject: isolated-functions.sh: skip set_colors for depend This avoids an unneeded stty call. --- bin/isolated-functions.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'bin/isolated-functions.sh') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index dbd653c41..733795aa1 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -434,14 +434,19 @@ RC_INDENTATION='' RC_DEFAULT_INDENT=2 RC_DOT_PATTERN='' -case "${NOCOLOR:-false}" in - yes|true) - unset_colors - ;; - no|false) - set_colors - ;; -esac +if [[ $EBUILD_PHASE == depend ]] ; then + # avoid unneeded stty call in set_colors during "depend" phase + unset_colors +else + case "${NOCOLOR:-false}" in + yes|true) + unset_colors + ;; + no|false) + set_colors + ;; + esac +fi if [[ -z ${USERLAND} ]] ; then case $(uname -s) in -- cgit v1.2.3-1-g7c22