Replace QA_DT_HASH with QA_PRESTRIPPED where appropriate. Thanks to Arfrever
authorZac Medico <zmedico@gentoo.org>
Wed, 24 Dec 2008 19:31:59 +0000 (19:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 24 Dec 2008 19:31:59 +0000 (19:31 -0000)
for reporting. Also, remove array support since bash arrays don't export
anyway.

svn path=/main/trunk/; revision=12297

bin/prepstrip

index 4fb0760cd7987512aafa7bae561c0f0f91c42f6d..589e30084218abe7f17cebd2d6d701d52f6360ef 100755 (executable)
@@ -82,20 +82,15 @@ if ! hasq binchecks ${RESTRICT} && \
        ! hasq strip ${RESTRICT} ; then
        log=$T/scanelf-already-stripped.log
        scanelf -yqRBF '#k%F' -k '!.symtab' "$@" | sed -e "s#^$D##" > "$log"
-       if [[ -s $log && ${QA_STRICT_PRESTRIPPED-unset} = unset ]] ; then
-               if [[ ${#QA_DT_HASH[@]} -gt 1 ]] ; then
-                       for x in "${QA_PRESTRIPPED[@]}" ; do
-                               sed -e "s#^${x#/}\$##" -i "$log"
-                       done
-               else
-                       local shopts=$-
-                       set -o noglob
-                       for x in $QA_PRESTRIPPED ; do
-                               sed -e "s#^${x#/}\$##" -i "$log"
-                       done
-                       set +o noglob
-                       set -$shopts
-               fi
+       if [[ -n $QA_PRESTRIPPED && -s $log \
+               ${QA_STRICT_PRESTRIPPED-unset} = unset ]] ; then
+               local shopts=$-
+               set -o noglob
+               for x in $QA_PRESTRIPPED ; do
+                       sed -e "s#^${x#/}\$##" -i "$log"
+               done
+               set +o noglob
+               set -$shopts
        fi
        sed -e "/^\$/d" -e "s#^#/#" -i "$log"
        if [[ -s $log ]] ; then