summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/util/dirsize.sh.in
AgeCommit message (Collapse)AuthorFilesLines
2019-10-30makepkg: do not count hard links multiple times when calculating pkg sizeEli Schwartz1-0/+41
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>