From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R2vGu-0006RZ-Uc for garchives@archives.gentoo.org; Mon, 12 Sep 2011 01:25:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BD2921C0F2; Mon, 12 Sep 2011 01:25:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 32DBA21C0F2 for ; Mon, 12 Sep 2011 01:25:02 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 98C911B400A for ; Mon, 12 Sep 2011 01:25:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CC2B280042 for ; Mon, 12 Sep 2011 01:25:00 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <20b0fdd6910d094b829a16c54a97f8d2900e00de.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/isolated-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 20b0fdd6910d094b829a16c54a97f8d2900e00de Date: Mon, 12 Sep 2011 01:25:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f69decf9096f02239bcbe70e53fff649 commit: 20b0fdd6910d094b829a16c54a97f8d2900e00de Author: Zac Medico gentoo org> AuthorDate: Mon Sep 12 01:24:48 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Sep 12 01:24:48 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D20b0fdd6 isolated-functions.sh: skip set_colors for depend This avoids an unneeded stty call. --- bin/isolated-functions.sh | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index dbd653c..733795a 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -434,14 +434,19 @@ RC_INDENTATION=3D'' RC_DEFAULT_INDENT=3D2 RC_DOT_PATTERN=3D'' =20 -case "${NOCOLOR:-false}" in - yes|true) - unset_colors - ;; - no|false) - set_colors - ;; -esac +if [[ $EBUILD_PHASE =3D=3D 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 =20 if [[ -z ${USERLAND} ]] ; then case $(uname -s) in