diff options
author | Simon Stelling <blubb@gentoo.org> | 2006-05-01 21:12:04 +0000 |
---|---|---|
committer | Simon Stelling <blubb@gentoo.org> | 2006-05-01 21:12:04 +0000 |
commit | 1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99 (patch) | |
tree | 4cf7182aa108f06aa07c2b3b53199b7ceca50b52 /bin/isolated-functions.sh | |
parent | d0325c25afa83e66310108a0a0fe74926051a83d (diff) | |
download | portage-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.gz portage-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.bz2 portage-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.zip |
make portage shut up if --quiet is given; bug 62273
svn path=/main/trunk/; revision=3296
Diffstat (limited to 'bin/isolated-functions.sh')
-rw-r--r-- | bin/isolated-functions.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 3d3b93741..03cba8143 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -3,6 +3,10 @@ # $Header$ # Internal logging function, don't use this in ebuilds +vecho() { + [[ ${PORTAGE_QUIET} == "1" ]] || echo ${@} +} + elog_base() { local messagetype [ -z "${1}" -o -z "${T}" -o ! -d "${T}/logging" ] && return 1 @@ -12,7 +16,7 @@ elog_base() { shift ;; *) - echo -e " ${BAD}*${NORMAL} Invalid use of internal function elog_base(), next message will not be logged" + vecho -e " ${BAD}*${NORMAL} Invalid use of internal function elog_base(), next message will not be logged" return 1 ;; esac |