pkg-size passes all filenames as parameteres to du. When there are really meany files (e.g. kdelibs), the parameter list is to long and an error is produced. The pkg-size script has "2> /dev/null" btw, so ou won't even see the error, it just reports size 0. Attached patch splits the file list into 64k segments with split, runs du on each and prints the sum of the segments' sizes (with expr). Please see comments in the patch for more info.
Created attachment 1136 [details, diff] patch to cvs version 1.1 (current) of pkg-size
I know this is a problem, but I also think your code is too long. Is there any other way to fix this ?
Fixed in a much shorter manner that also works with spaced file names (I think).