Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180079 - Problem with emerge --search "" (error)
Summary: Problem with emerge --search "" (error)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 181949
  Show dependency tree
 
Reported: 2007-05-28 01:08 UTC by phrexianreaper
Modified: 2007-05-31 01:29 UTC (History)
0 users

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


Attachments
fix the KeyError and allow an empty string to match all packages (empty_string.patch,508 bytes, patch)
2007-05-28 07:13 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description phrexianreaper 2007-05-28 01:08:32 UTC
When a search is run via emerge --search with "" for the last argument, a traceback is received. Doing the same with emerge --search with no other arguments returns a no search term found message.

Reproducible: Always

Steps to Reproduce:
1.emerge --search ""
2.???
3.???

Actual Results:  
error/traceback

Expected Results:  
a search for nothing/everything.


emerge --search ""
Searching...   
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5530, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5506, in emerge_main
    myopts, myfiles, spinner)
  File "/usr/bin/emerge", line 4604, in action_search
    searchinstance.execute(mysearch)
  File "/usr/bin/emerge", line 399, in execute
    if self.searchkey[0] == '%':
IndexError: string index out of range
Comment 1 Zac Medico gentoo-dev 2007-05-28 07:13:46 UTC
Created attachment 120499 [details, diff]
fix the KeyError and allow an empty string to match all packages

Thanks, this is fixed in svn r6649.
Comment 2 Zac Medico gentoo-dev 2007-05-31 01:29:11 UTC
This has been released in 2.1.2.9.