summaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2007-07-16 19:35:57 +0000
committerfuzzyray <fuzzyray@gentoo.org>2007-07-16 19:35:57 +0000
commit06906e392cc1a7baa8f6ca1523efed5f17c97340 (patch)
tree3c874c7e5a4011c27a773126c021d20e93f96425 /trunk
parent5e1982b1a2495a8c3e1dcc50df7c875af48b3224 (diff)
downloadgentoolkit-06906e392cc1a7baa8f6ca1523efed5f17c97340.tar.gz
Remove usage of md5sum
svn path=/; revision=417
Diffstat (limited to 'trunk')
-rwxr-xr-xtrunk/src/revdep-rebuild/revdep-rebuild-rewrite14
1 files changed, 5 insertions, 9 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite
index 6ee5cb7..7f62ea4 100755
--- a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite
+++ b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite
@@ -354,14 +354,12 @@ get_search_env() {
# Set to "<tab>$SONAME<space>"
SONAME_SEARCH=$'\t'"$SONAME "
fi
- # NOTE: Using a redirect instead of echo is good, but it will cause a minor
- # incompatibility with older versions of revdep-rebuild, because the
- # string sent to md5sum will no longer have a newline at the end.
- SOMD5=$(md5sum <<< "$SONAME_SEARCH$SONAME")
- LIST+="_${SOMD5:0:8}"
+ local uuid="${SONAME##*/}"
+ uuid="${uuid//[[:space:]]}"
+ LIST+="_$uuid"
HEAD_TEXT="using $SONAME"
OK_TEXT="There are no dynamic links to $SONAME"
- unset WORKING_TEXT SOMD5
+ unset WORKING_TEXT
fi
[[ $LIST ]] || die 1 $LIST IS NOT DEFINED
@@ -769,9 +767,7 @@ if grep -qF '(none)' "$LIST.4_package_owners"; then
if [[ $VERBOSE ]]; then
ewarn "The broken files are:"
while read filename junk; do
- if [[ ${junk} == *none* ]]; then
- ewarn " $filename"
- fi
+ [[ junk = *none* ]] && ewarn " $filename"
done < "$LIST.4_package_owners"
fi
fi