diff options
author | Dan McGee <dan@archlinux.org> | 2008-10-28 22:20:09 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-28 22:20:09 -0500 |
commit | cd51abf0c8d04c72cc85b28cd45b33b9020c661e (patch) | |
tree | 18955197d51d579f319792fe473ef1df13dbf175 /scripts/repo-add.sh.in | |
parent | 2e431e1cc3c9bb445ea886521117f483e78aa84a (diff) | |
parent | a63aeed562c8bdd6604ec50e6a4b684f6edabda3 (diff) | |
download | pacman-cd51abf0c8d04c72cc85b28cd45b33b9020c661e.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'scripts/repo-add.sh.in')
-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 d6d59eb7..4f9639ca 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" |