diff options
author | Simon Stelling <blubb@gentoo.org> | 2006-08-24 18:51:56 +0000 |
---|---|---|
committer | Simon Stelling <blubb@gentoo.org> | 2006-08-24 18:51:56 +0000 |
commit | 0c0a97db4243ffb44b5b7b31eea194fef7d49cb8 (patch) | |
tree | 16c0500df554fd1c03d38bff4f3aad991e1c6ce2 | |
parent | e60dff9a31b0a9f26a81cb912a005b2a2ee248fa (diff) | |
download | portage-0c0a97db4243ffb44b5b7b31eea194fef7d49cb8.tar.gz portage-0c0a97db4243ffb44b5b7b31eea194fef7d49cb8.tar.bz2 portage-0c0a97db4243ffb44b5b7b31eea194fef7d49cb8.zip |
only print the "Removing /usr/share/info" if --quiet was not passed
svn path=/main/trunk/; revision=4339
-rw-r--r-- | bin/isolated-functions.sh | 8 | ||||
-rwxr-xr-x | bin/misc-functions.sh | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index dcd230844..de62d8611 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 diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 6e0fbac09..e4d0d908f 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -221,7 +221,7 @@ install_mask() { set -o noglob for no_inst in ${install_mask}; do set +o noglob - einfo "Removing ${no_inst}" + quiet_mode || einfo "Removing ${no_inst}" # normal stuff rm -Rf ${root}/${no_inst} >&/dev/null |