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
As already suggested on ML the line must be replaced with: if x.endswith('/'):
yes i know but i wan't that they change it in the docu.
Yes, it is changed in the document. //ZhEN