[pacman-dev] [PATCH] makepkg: Progress bar at package compression stage
Yanus Poluektovich
ypoluektovich at gmail.com
Sat Jun 7 21:12:01 EDT 2014
On 06/08/2014 12:30 AM, Dave Reisner wrote:
>> + local uncompressed_size=$( du -sb "${comp_files[@]}" | awk 'BEGIN {s=0} {s += $1} END {print s}' )
>
> Other usage of du in this script are necessarily done via a preprocessor
> replacement, i.e. @DUPATH@ @DUFLAGS@
>
> You'll need to follow this.
Actually, after some grepping I found that there is only one other usage
of DUPATH/DUFLAGS in the entire codebase. It goes like this: first we
set DUFLAGS="-sk --apparent-size" in configure.ac, forcing it to report
sizes in kilobytes (the -k option), and then we multiply the result by
1024 to get the useful number (lines 1905-1906 of
scripts/makepkg.sh.in). Do you think there's a reason behind it, or
should I just change "-sk" to "-sb"?
More information about the pacman-dev
mailing list