On Tue, Sep 8, 2009 at 1:19 PM, Nagy Gabor<ngaba@bibl.u-szeged.hu> wrote:
Here are some output of the patch just sent to the ML.
$ pacman -Sp --print-format "%r/%n-%v : %l [%s]" kdelibs extra/qt-4.5.2-6 : http://mir1.archlinuxfr.org/archlinux/extra/os/i686/qt-4.5.2-6-i686.pkg.tar.... [28914122] extra/ilmbase-1.0.1-1 : http://mir1.archlinuxfr.org/archlinux/extra/os/i686/ilmbase-1.0.1-1-i686.pkg... [0] extra/openexr-1.6.1-1 : http://mir1.archlinuxfr.org/archlinux/extra/os/i686/openexr-1.6.1-1-i686.pkg... [0]
$ pacman -Up --print-format "%r/%n-%v : %l [%s]" /var/cache/pacman/pkg/bash-4.0.028-1-i686.pkg.tar.gz local/bash-4.0.028-1 : /var/cache/pacman/pkg/bash-4.0.028-1-i686.pkg.tar.gz [0,93]
$ pacman -Sp --print-format "%r/%n-%v : %l [%s]" bash core/bash-4.0.028-1 : http://mir1.archlinuxfr.org/archlinux/core/os/i686/bash-4.0.028-1-i686.pkg.t... [0,00]
$ pacman -Rdp --print-format "%r/%n-%v : %l [%s]" bash local/bash-4.0.028-1 : bash-4.0.028-1 [2,60]
Wow, this is nice.
Of course, if you do interactive operations like pacman -Sp group or pacman -Rp group, or pacman -Rc, it looks less nice, but this is already the case (without my patch). And also the patch to achieve that has become quite bloated (11 files changed, 171 insertions, 37 deletions), but the big part of this code is concentrated in 3 new functions in util.c