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.
Steps to Reproduce:
1.emerge --search ""
a search for nothing/everything.
emerge --search ""
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
File "/usr/bin/emerge", line 399, in execute
if self.searchkey == '%':
IndexError: string index out of range
Created attachment 120499 [details, diff]
fix the KeyError and allow an empty string to match all packages
Thanks, this is fixed in svn r6649.
This has been released in 18.104.22.168.