index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-08-19 23:29:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-19 23:29:56 -0500 |
commit | 282eeadc68fec1da8651d0c65ad0dfebd11a9c7f (patch) | |
tree | 1d3cf24273b8514c8ffa67e6d7d8b90fc876eb99 /scripts/repo-add.sh.in | |
parent | 9609c0f1351a73e06edcfda1494a41d66c51dcb5 (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 4 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 538976d7..f3a3a4f4 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -122,7 +122,7 @@ db_write_delta() # get md5sum and size of delta md5sum="$(md5sum "$deltafile" | cut -d ' ' -f 1)" - csize=$(du -kL "$deltafile" | awk '{print $1 * 1024}') + csize=$(@SIZECMD@ "$deltafile") # ensure variables were found if [ -z "$pkgname" -o -z "$fromver" -o -z "$tover" -o -z "$arch" ]; then @@ -170,7 +170,7 @@ db_write_entry() IFS=$OLDIFS # get compressed size of package - csize=$(du -kL "$pkgfile" | awk '{print $1 * 1024}') + csize=$(@SIZECMD@ "$pkgfile") startdir=$(pwd) pushd "$gstmpdir" 2>&1 >/dev/null |