index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-12-16 22:32:54 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-03 12:03:10 +1000 |
commit | 241d6b884a3a6c883b6c61a3b175d17e7d317fc5 (patch) | |
tree | 0e45b5375174c4b1fceb5a00657875657fd4d793 /scripts | |
parent | d5a6ce8ca124d1eea343314b23110e006eb313d5 (diff) |
-rw-r--r-- | scripts/Makefile.am | 1 | ||||
-rw-r--r-- | scripts/makepkg.sh.in | 7 |
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 2bd64118..c3c1d73a 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -57,6 +57,7 @@ edit = sed \ -e "s|@INODECMD[@]|$(INODECMD)|g" \ -e 's|@SIZECMD[@]|$(SIZECMD)|g' \ -e 's|@SEDINPLACE[@]|$(SEDINPLACE)|g' \ + -e 's|@DUFLAGS[@]|$(DUFLAGS)|g' \ -e 's|@DUPATH[@]|$(DUPATH)|g' \ -e 's|@SCRIPTNAME[@]|$@|g' \ -e 's|@configure_input[@]|Generated from $@.sh.in; do not edit by hand.|g' diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ff3fa5b8..ceaab612 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1704,12 +1704,7 @@ write_pkginfo() { local packager="Unknown Packager" fi - # btrfs's delayed allocation causes the stat buffers from the kernel to "lie" - # to us momentarily and report 0 blocks allocated (which is how du calculates - # size). Sleeping for a second here is about the dirtiest thing possible, - # but avoids reporting entirely bogus install sizes. - sleep 1 - local size="$(@DUPATH@ -sk)" + local size="$(@DUPATH@ @DUFLAGS@)" size="$(( ${size%%[^0-9]*} * 1024 ))" msg2 "$(gettext "Generating %s file...")" ".PKGINFO" |