index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Cedric Staniewski <cedric@gmx.ca> | 2009-10-20 15:44:00 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-10-20 22:24:36 -0500 |
commit | 3d67d9b16c53fe70c1b7149b5a6bfbbf17522ba3 (patch) | |
tree | c75ff179fe9cf5fd9f99ec755e8369cda6047b21 /scripts/repo-add.sh.in | |
parent | 4281a1a7f2d24cfcf0997122cc75c216a17f3e5b (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 6 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 2a62d2ba..3f00441a 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -136,7 +136,8 @@ db_write_delta() echo -e "%DELTAS%" >>$deltas fi # get md5sum and compressed size of package - md5sum="$(openssl dgst -md5 "$deltafile" | awk '{print $NF}')" + md5sum="$(openssl dgst -md5 "$deltafile")" + md5sum="${md5sum##* }" csize=$(@SIZECMD@ "$deltafile") oldfile=$(xdelta3 printhdr $deltafile | grep "XDELTA filename (source)" | sed 's/.*: *//') @@ -213,7 +214,8 @@ db_write_entry() IFS=$OLDIFS # get md5sum and compressed size of package - md5sum="$(openssl dgst -md5 "$pkgfile" | awk '{print $NF}')" + md5sum="$(openssl dgst -md5 "$pkgfile")" + md5sum="${md5sum##* }" csize=$(@SIZECMD@ "$pkgfile") # ensure $pkgname and $pkgver variables were found |