summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/isolated-functions.sh8
-rwxr-xr-xbin/misc-functions.sh2
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