Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195481 - app-portage/esearch - exclude feature
Summary: app-portage/esearch - exclude feature
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-10-11 09:33 UTC by Michael Elbaum
Modified: 2012-11-02 19:31 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 Michael Elbaum 2007-10-11 09:33:37 UTC
esearch would be even more wonderful if it could exclude particular hits. for example, if I'm looking for a spelling applet, the page is inundated with myspell. it would be nice to be able to do: "esearch --exclude mysell spell", or something like that. 

Reproducible: Always
Comment 1 Guilherme Amadio gentoo-dev 2007-10-12 02:16:22 UTC
I'm not a dev, so I will just tell you what I would do in these cases:

esearch -c spell | grep -v myspell

Comment 2 Michael Elbaum 2007-10-12 20:25:57 UTC
Thanks for the suggestion, but this only drops the title lines, not the 6 lines with version, description, etc. It works well with 
esearch -c
Comment 3 Paul Varner (RETIRED) gentoo-dev 2009-01-02 19:53:16 UTC
esearch is not being maintained by the upstream developer anymore, so this will need a patch to be added.

However, esearch does support python regular expressions and the following  will exclude anything that starts with my but contains spell in the name:

esearch '^(?!my).*spell.*' 

to also exclude apell and ispell, the following would work:

esearch '^(?!my|a|i).*spell.*'

Regular expressions are not intuitive to use, but they give you the power to search for pretty much anything.
Comment 4 Mira Ressel 2012-04-28 19:47:37 UTC
I agree that this feature is not really needed, but I implemented it nevertheless. It's already in the upstream repos and should be contained in the next release.
Comment 5 Brian Dolbec (RETIRED) gentoo-dev 2012-04-28 20:01:18 UTC
This feature is now in our new development repo since the original upsteam is no longer.
https://github.com/fuzzyray/esearch

It will also be available in esearch-9999 (live ebuild) which is in the tree.

Please test and report any bugs.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2012-11-02 19:31:55 UTC
This was released in esearch-1.2