summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-08-24 18:51:56 +0000
committerSimon Stelling <blubb@gentoo.org>2006-08-24 18:51:56 +0000
commit0c0a97db4243ffb44b5b7b31eea194fef7d49cb8 (patch)
tree16c0500df554fd1c03d38bff4f3aad991e1c6ce2 /bin/isolated-functions.sh
parentMake symlink merge output respect --quiet. Thanks to blubb for reporting. (diff)
downloadportage-multirepo-0c0a97db4243ffb44b5b7b31eea194fef7d49cb8.tar.gz
portage-multirepo-0c0a97db4243ffb44b5b7b31eea194fef7d49cb8.tar.bz2
portage-multirepo-0c0a97db4243ffb44b5b7b31eea194fef7d49cb8.zip
only print the "Removing /usr/share/info" if --quiet was not passed
svn path=/main/trunk/; revision=4339
Diffstat (limited to 'bin/isolated-functions.sh')
-rw-r--r--bin/isolated-functions.sh8
1 files changed, 6 insertions, 2 deletions
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