Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-05-26 23:46:01 +0200
committerDan McGee <dan@archlinux.org>2008-05-29 06:37:14 -0500
commit149839c5391e9a93465f86dbb8d095a0150d755d (patch)
tree71b23a3042f360f8c935ee3befc49150a055f972 /scripts/makepkg.sh.in
parent1d71079c5b57af2feb53fbfa98f93122a32ca154 (diff)
du -b is not available on BSD, use du -k instead.
This fixes FS#10459. There is apparently no portable ways to get the apparent size of a file, like du -b does. So the best compromise seems to get the block size in kB, and then convert that to byte so that we keep compatibility. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 273bc0ab..9587756a 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -779,7 +779,7 @@ create_package() {
else
local packager="Unknown Packager"
fi
- local size=$(du -sb | awk '{print $1}')
+ local size=$(du -sk | awk '{print $1 * 1024}')
# write the .PKGINFO file
msg2 "$(gettext "Generating .PKGINFO file...")"