The way portage is searching package is driving me crazy. When I want the name of a package, I should enter, for example with gentoo kernel package : # emerge -s gentoo source [LOTS OF LINES] Reproducible: Always Steps to Reproduce: 1. emerge -s [arg1] [arg2] 2. 3. Actual Results: lots of lines Expected Results: a cross search, like SQL "where" clauses. As info, Debian apt-cache is acting this way, and it's way much cooler :p I'm working on a sqlite implementation of the cache, which seems to be a LOT faster than the actuel way. If somebody is interested in implementing it in the current portage, contact me.
emerge -s gentoo.*source
There are SQL versions in bugzilla already. The full specification for the portage db's will developing in the future. Spanky's comment does do something like you're looking for...but it probably would make more sense to do as you suggest in emerge. We will be modifying a lot of the related code as we adjust the internals and develop the API.
Putting a hold on feature requests for portage as they are drowning out the bugs. Most of these features should be available in the next major version of portage. But for the time being, they are just drowning out the major bugs and delaying the next version's progress. Any bugs that contain patches and any bugs for etc-update or dispatch-conf can be reopened. Sorry, I'm just not good enough with bugzilla. ;)
I'm planning to add a more extensive search interface at some point.