From 06906e392cc1a7baa8f6ca1523efed5f17c97340 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Mon, 16 Jul 2007 19:35:57 +0000 Subject: [PATCH] Remove usage of md5sum svn path=/; revision=417 --- trunk/src/revdep-rebuild/revdep-rebuild-rewrite | 14 +++++--------- 1 file 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 "$SONAME" 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 -- 2.26.2