Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 5140

Summary: Portage Patch -- Description Searching
Product: Portage Development Reporter: Nicholas Jones (RETIRED) <carpaski>
Component: UnclassifiedAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: normal CC: carpaski
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://gentoo.twobit.net/portage/emerge-2.0.15-desc.diff
Whiteboard:
Package list:
Runtime testing required: ---

Description Nicholas Jones (RETIRED) gentoo-dev 2002-07-17 02:22:51 UTC
Adds description searching as an option to -s
Patch against 2.0.15

Equivalent:
emerge -s --searchdesc html
emerge -sS html
emerge -S html

Fairly straightforward.
The try/except blocks are commented for the exceptions they handle.

Apparently Python optimizes repetitive blocks well, as I tried to do
a speedup by using an integer comparison versus an 'in myarray' type,
and saw no difference in speed.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-07-17 03:12:00 UTC
For ease of clicking:

http://gentoo.twobit.net/portage/emerge-2.0.15-desc.diff
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-07-29 23:20:15 UTC
This is in 2.0.18+ or thereabouts