On Thu, Mar 06, 2014 at 10:43:34AM +1000, Allan McRae wrote: > 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 >
I'll find out if he's willing to do this.
