pacman/scripts/libmakepkg/util
Eli Schwartz 0272fca993 makepkg: do not count hard links multiple times when calculating pkg size
Exclude files with hardlinks when cat'ing all the files, and do a second
run to look at each file with hardlinks, keep track of the ones we've
already operated on, and only cat each inode once. Then use "wc -c" to get
the size of all (deduplicated) files the same way we were already doing.

Original-patch-by: Ronan Pigott <rpigott@berkeley.edu>
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-10-30 10:03:46 +10:00
..
compress.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
config.sh.in makepkg: also move restore_envvars handling into libmakepkg 2019-05-28 12:46:44 +10:00
dirsize.sh.in makepkg: do not count hard links multiple times when calculating pkg size 2019-10-30 10:03:46 +10:00
error.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
meson.build makepkg: do not count hard links multiple times when calculating pkg size 2019-10-30 10:03:46 +10:00
message.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
option.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
parseopts.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
pkgbuild.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
schema.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
source.sh.in Update copyright years 2019-10-23 22:06:54 +10:00
util.sh.in Update copyright years 2019-10-23 22:06:54 +10:00