[pacman-dev] [PATCH 1/2] contrib: adding pacsize
Allan McRae
allan at archlinux.org
Wed Mar 5 19:43:34 EST 2014
On 06/03/14 01:50, Dave Reisner wrote:
> On Wed, Mar 05, 2014 at 04:00:16PM +0100, Pierre Neidhardt wrote:
>> > Printing package size is useful for maintenance. Indeed, the first entry on the
>> > wiki is focused on this topic:
>> >
>> > https://wiki.archlinux.org/index.php/Pacman_Tips#Maintenance
>> >
>> > None of the proposed solutions will allow you to:
>> > - select packages;
>> > - work on the output of other commands yielding a list of packages;
>> > - change the sorting;
>> > - be locale independent;
>> > - print a grand total;
>> > - be fast (most solutions are wasting a lot of time -- only expac is faster);
>> > - not rely on any third-party tool.
>> >
>> > Pacsize is a POSIX shell script that is generic enough to enclose all these
>> > features (and more).
> I truly do not understand why you've chosen to write this in POSIX shell
> when every other shell script in the pacman repo is written in bash. A
> lot of the constructs in your script are made considerably uglier and
> more fragile than needed because of this decision.
>
If you can convince the author to provide a patch(set) to add expac into
src/util, I'd be more than happy to accept it.
Allan
More information about the pacman-dev
mailing list