[pacman-dev] [PATCH] '-Spp and -Supp' options were added to generate uri list without the downloaded package uris

Xavier shiningxc at gmail.com
Tue Sep 8 09:33:57 EDT 2009


On Tue, Sep 8, 2009 at 1:19 PM, Nagy Gabor<ngaba at 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.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]
>
> 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


More information about the pacman-dev mailing list