[arch-dev-public] pacman tag support (initial patch attached)
Ronald van Haren
pressh at gmail.com
Wed Aug 20 17:29:01 EDT 2008
Can someone give me write access to pacman git (Dan?), so I don't have
to send every patch to the list :)
Anyways, I took a bit of time to start writing tag support for pacman
and makepkg, which is usefull now we don't have categories anymore
like we had before (and still have for community).
You should be warned that I did not yet do a code cleanup (that will
come when all features are in), but it is starting to get a bit messy
with patch files on my local box so I like to commit.
I guess the patch should work both against pacman git and 3.2.0 at the moment.
How does it work?
in PKGBUILD, define a field called tags, for example:
tags=('gnome' 'gtk' 'network' 'messenger')
compile with makepkg as usual. Install with pacman with attached patch applied.
the tags field should show up in 'pacman -Qi'.
Further you can search the local database (only long option is
working, short option not yet, have to look into it). You can search
with (multiple tags works):
pacman -Q --tags gnome
My little TODO list for next pacman release:
- be able to search for tags in the repos
- get short options working
- write proper documentation
So please patch it into git, or better give me access. Any comments are welcome.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 20406 bytes
Desc: not available
More information about the arch-dev-public