On Fri, Sep 4, 2009 at 3:50 AM, Xyne<[email protected]> wrote: >> Instead of adding several options, wouldn't it be possible to let "-p" >> accept a string argument with formatting information similar to the way >> the date command works. This would be extensible in the future and >> could include the following interpretted sequences (among others) >> >> %u - url >> %n - pkgname >> %v - pkgver-pkgrel >> %s - size > > > %r - repo > > I think the repo would be very useful as well. > >
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.gz [28914122] extra/ilmbase-1.0.1-1 : http://mir1.archlinuxfr.org/archlinux/extra/os/i686/ilmbase-1.0.1-1-i686.pkg.tar.gz [0] extra/openexr-1.6.1-1 : http://mir1.archlinuxfr.org/archlinux/extra/os/i686/openexr-1.6.1-1-i686.pkg.tar.gz [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.tar.gz [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]
