[pacman-dev] pacman, formatted output
tuxce
tuxce.net at gmail.com
Tue Mar 16 00:32:33 CET 2010
On Tue, 16 Mar 2010 07:50:31 +1000
allan at archlinux.org (Allan McRae) wrote:
> On 16/03/10 07:46, tuxce wrote:
> > Hi, I made a little program in C, package-query to query alpm and
> > aur. He takes an option to format his output and I'm wondering if
> > this feature can be implemented in pacman (just for alpm of course).
> >
> > I think I can provide a patch to implement it for queries like
> > -{Q,S}s with an option --format, but I don't know if it could
> > interest.
> >
> > To see how it renders, you can try package-query-git from AUR,
> > example:
> >
> > $ # repo/name version [local version]
> > $ package-query -Ss pacman -f "%r/%n %v [%l]"
> > core/pacman 3.3.3-1 [3.3.3-1]
> > core/pacman-mirrorlist 20100131-1 [20100131-1]
> > extra/namcap 2.5-1 [2.5-1]
> > extra/srcpac 0.7-1 [-]
> > community/pacman-contrib 3.3.3-1 [3.3.3-1]
> > community/pacpan 4.0-4 [-]
> > community/pacupdate 0.1.1-2 [-]
> > community/powerpill 17.1-1 [17.1-1]
> > community/xpacman 0.11-4 [-]
> > community/xpacman2 1.002-2 [-]
> >
> >
> > btw, thanks for the work done in alpm, I found it quite simple to
> > understand even if there is no documentation :)
> >
>
> Something like this was just pulled into the git master branch:
> http://projects.archlinux.org/pacman.git/commit/?id=d39b1dbe
>
> Allan
>
ok, I wasn't following the list before :/
but, anyway, good news, thanks.
More information about the pacman-dev
mailing list