kisslinux / kiss

KISS Linux - Package Manager
https://kisslinux.github.io
MIT License
464 stars 62 forks source link

kiss-size: fix bug when kiss-size runs on big packages #256

Closed echawk closed 3 years ago

echawk commented 3 years ago

Previously, if kiss-size was ran on a package that owns a lot of files, kiss-size would error out. This is because du wasn't able to handle the number of files provided to it.

This patch solves this issue, by avoiding the generation of the 'files' variable, and instead piping directly into xargs which then feeds the files to du.

For an example package that breaks with the previous implementation, see https://github.com/ehawkvu/kiss-tex/tree/master/texlive/texlive-fontsextra which installs around 94,000 files.

dylanaraps commented 3 years ago

Very nice, thanks.