Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5011 - emerge search '' doesnt work
Summary: emerge search '' doesnt work
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Portage Manual (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-15 04:31 UTC by Martin Holzer (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

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 Martin Holzer (RETIRED) gentoo-dev 2002-07-15 04:31:07 UTC
search (-s short option)
              searches for matches of the supplied string in the current local
              portage tree. The search string is a regular expression.
              A few examples: 
              emerge search '^kde'
                  list all packages starting with kde
              emerge search 'gcc$'
                  list all packages ending with gcc
-->              emerge search '' or
              emerge search '.*'
                  list all available packages 



# emerge search ''  
Traceback (most recent call last):
  File "/usr/bin/emerge", line 96, in ?
    if x[-1]=="/":
IndexError: string index out of range


emerge search '.* works fine
Comment 1 Frederic Jolliton 2002-08-12 05:44:58 UTC
As already suggested on ML the line must be replaced with:

if x.endswith('/'):
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2002-08-12 07:11:29 UTC
yes i know

but i wan't that they change it in the docu.

Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2002-10-04 12:33:00 UTC
Yes, it is changed in the document.

//ZhEN