summaryrefslogtreecommitdiffstats
path: root/bin/prepstrip
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-05-01 21:12:04 +0000
committerSimon Stelling <blubb@gentoo.org>2006-05-01 21:12:04 +0000
commit1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99 (patch)
tree4cf7182aa108f06aa07c2b3b53199b7ceca50b52 /bin/prepstrip
parentd0325c25afa83e66310108a0a0fe74926051a83d (diff)
downloadportage-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/prepstrip')
-rwxr-xr-xbin/prepstrip8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index a837d0a17..44b6b519e 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepstrip,v 1.23.2.3 2005/08/15 02:58:20 vapier Exp $
+source /usr/lib/portage/bin/isolated-functions.sh
+
if [[ " ${FEATURES} " == *" nostrip "* ]] || \
[[ " ${RESTRICT} " == *" nostrip "* ]] || \
[[ " ${RESTRICT} " == *" strip "* ]]
@@ -46,7 +48,7 @@ save_elf_debug() {
for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find "${y}" -type f -name '*.a' -print0 ; done); do
if [[ ${banner} -eq 1 ]] ; then
- echo "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
+ vecho "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
banner=0
fi
@@ -64,11 +66,11 @@ for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find "${y}" -type f -name '
set +o noglob
if [[ ${f} == *"current ar archive"* ]] ; then
- echo " ${x:${#D}:${#x}}"
+ vecho " ${x:${#D}:${#x}}"
[[ ${stripitbaby} -eq 1 ]] && ${STRIP} -g "${x}"
fi
if [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* ]] ; then
- echo " ${x:${#D}:${#x}}"
+ vecho " ${x:${#D}:${#x}}"
save_elf_debug "${x}"
[[ ${stripitbaby} -eq 1 ]] && ${STRIP} ${PORTAGE_STRIP_FLAGS} "${x}"
fi