From 0c0a97db4243ffb44b5b7b31eea194fef7d49cb8 Mon Sep 17 00:00:00 2001 From: Simon Stelling Date: Thu, 24 Aug 2006 18:51:56 +0000 Subject: only print the "Removing /usr/share/info" if --quiet was not passed svn path=/main/trunk/; revision=4339 --- bin/isolated-functions.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin/isolated-functions.sh') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index dcd23084..de62d861 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -2,11 +2,15 @@ # Distributed under the terms of the GNU General Public License v2 # $Header$ -# Internal logging function, don't use this in ebuilds +quiet_mode() { + [[ ${PORTAGE_QUIET} -eq 1 ]] +} + vecho() { - [[ ${PORTAGE_QUIET} == "1" ]] || echo "$@" + quiet_mode || echo "$@" } +# Internal logging function, don't use this in ebuilds elog_base() { local messagetype [ -z "${1}" -o -z "${T}" -o ! -d "${T}/logging" ] && return 1 -- cgit v1.2.3-65-gdbad