From: Zac Medico Date: Mon, 12 Sep 2011 01:24:48 +0000 (-0700) Subject: isolated-functions.sh: skip set_colors for depend X-Git-Tag: v2.2.0_alpha56~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20b0fdd6910d094b829a16c54a97f8d2900e00de;p=portage.git isolated-functions.sh: skip set_colors for depend This avoids an unneeded stty call. --- 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