diff options
author | Dan McGee <dan@archlinux.org> | 2008-10-19 04:27:00 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-19 06:59:37 +0200 |
commit | 50e3dc02bf1a99ec040988fde1425adba67da4cb (patch) | |
tree | fa92cf6b29c6457412c1863b81651178c835d581 /scripts | |
parent | d1fec15d8148dec186e437da912d6a03a8d26b11 (diff) | |
download | pacman-50e3dc02bf1a99ec040988fde1425adba67da4cb.tar.gz pacman-50e3dc02bf1a99ec040988fde1425adba67da4cb.tar.xz |
repo-add: Use openssl instead of md5sum
This is similar to the change we made in makepkg so it is cross-platform
compatible and doesn't require coreutils.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/repo-add.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index f3a3a4f4..be0859ea 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -121,7 +121,7 @@ db_write_delta() arch=${deltavars[3]} # get md5sum and size of delta - md5sum="$(md5sum "$deltafile" | cut -d ' ' -f 1)" + md5sum="$(openssl dgst -md5 "$deltafile" | awk '{print $NF}')" csize=$(@SIZECMD@ "$deltafile") # ensure variables were found @@ -201,7 +201,7 @@ db_write_entry() # compute checksums msg2 "$(gettext "Computing md5 checksums...")" - echo -e "%MD5SUM%\n$(md5sum "$pkgfile" | cut -d ' ' -f 1)\n" >>desc + echo -e "%MD5SUM%\n$(openssl dgst -md5 "$pkgfile" | awk '{print $NF}')\n" >>desc [ -n "$url" ] && echo -e "%URL%\n$url\n" >>desc write_list_entry "LICENSE" "$_licenses" "desc" |