Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24756 - fast search script for gentoolkit or portage
Summary: fast search script for gentoolkit or portage
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Nicholas Jones (RETIRED)
URL: http://gentoo.devel-net.org/download/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-18 11:27 UTC by Marius Mauch (RETIRED)
Modified: 2003-10-23 10:21 UTC (History)
4 users (show)

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


Attachments
search and update script (fastsearch,3.85 KB, text/plain)
2003-07-18 11:27 UTC, Marius Mauch (RETIRED)
Details
updated fastsearch script (fastsearch,4.39 KB, text/plain)
2003-09-07 19:07 UTC, Marius Mauch (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2003-07-18 11:27:02 UTC
I wrote a bash script to improve search times in the portage tree (emerge -s
often needs >5 sec, emerge --searchdesc runs for minutes). Would be a nice
addition to gentoolkit or portage itself. It uses grep on a flat textfile for
the search, the textfile can also be updated with the script (I have a patch to
integrate it into emerge sync). 

It has a few restrictions:
- only the latest version is indexed (it ignores masking)
- it displays only the name and description of the package
- there might be some false results (not seen yet, but possible)
- update of the textfile takes some time (1-5 minutes)

Advantages:
- fery fast, returns almost instantly
- can search for a pattern in name and description in one run (emerge can only
search for one)
- displays only packages with ebuilds available (if the textfile is current)
- supports grep expressions and options
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-07-18 11:27:46 UTC
Created attachment 14670 [details]
search and update script
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-09-07 19:07:19 UTC
Created attachment 17244 [details]
updated fastsearch script

new version, fixed a few small bugs and added a new "info" action.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-10-23 10:21:07 UTC
Actually I don't think I'd like to have this in portage as it has several
problems and in general esearch can do everything that fastsearch does. Maybe
I'll add it to the GLEP 15 script repository, but I don't feel like supporting
this script much.