only print the "Removing /usr/share/info" if --quiet was not passed
authorSimon Stelling <blubb@gentoo.org>
Thu, 24 Aug 2006 18:51:56 +0000 (18:51 -0000)
committerSimon Stelling <blubb@gentoo.org>
Thu, 24 Aug 2006 18:51:56 +0000 (18:51 -0000)
svn path=/main/trunk/; revision=4339

bin/isolated-functions.sh
bin/misc-functions.sh

index dcd23084490ad0eaeed6e93952f23a6779e9cc17..de62d8611a549b6df13b618da80ca09edbecfcd3 100644 (file)
@@ -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
index 6e0fbac094d56fb7454c9324df6e37011fdc0596..e4d0d908fb05f77070223366ca62d984ed6e433e 100755 (executable)
@@ -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