Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69122 - Portage should use 'AND' search instead of 'OR'
Summary: Portage should use 'AND' search instead of 'OR'
Status: RESOLVED LATER
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-27 05:00 UTC by Philippe Lafoucrière
Modified: 2007-01-11 14:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Lafoucrière 2004-10-27 05:00:01 UTC
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.
Comment 1 SpanKY gentoo-dev 2004-10-27 15:05:34 UTC
emerge -s gentoo.*source
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-10-27 15:14:59 UTC
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.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:24:36 UTC
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. ;) 
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 14:00:13 UTC
I'm planning to add a more extensive search interface at some point.