Re: [gentoo-user] When did "emerge --search" start returning packages that don't match?

2018-09-18 Thread Florian Gamböck

Hi Grant,

On 2018-09-17 20:10, Grant Edwards wrote:
I recently noticed that "emerge --search" stopped working correctly. 
It now returns all sorts of packages that don't match the search 
sting:


$ emerge --search wxpython | grep '^[^\t ]'

[ Results for search key : wxpython ]
Searching...
*  dev-lang/python
*  dev-python/bpython
*  dev-python/ipython
*  dev-python/pythong [ Masked ]
*  dev-python/twython
*  dev-python/vpython [ Masked ]
*  dev-python/wxpython
[ Applications found : 7 ]

Why is it returning packges that don't match what I'm searching for?

Shouldn't only the last of the ones shown above be returned?


the culprit is --fuzzy-search. The manual states: "This option is 
enabled by default".


Try the following:

$ emerge --fuzzy-search=n --search wxpython | grep '^[^\t ]'
[ Results for search key : wxpython ]
Searching...
*  dev-python/wxpython
[ Applications found : 1 ]

I don't use --search (eix is my friend), but if you are certain that 
this behavior is new to you, then this new default must be introduced 
only recently.


--
Kind regards

Flo



Re: [gentoo-user] When did "emerge --search" start returning packages that don't match?

2018-09-18 Thread J. Roeleveld
On Monday, September 17, 2018 10:10:01 PM CEST Grant Edwards wrote:
> I recently noticed that "emerge --search" stopped working correctly.
> It now returns all sorts of packages that don't match the search
> sting:
> 
> $ emerge --search wxpython | grep '^[^\t ]'
> 
> [ Results for search key : wxpython ]
> Searching...
> *  dev-lang/python
> *  dev-python/bpython
> *  dev-python/ipython
> *  dev-python/pythong [ Masked ]
> *  dev-python/twython
> *  dev-python/vpython [ Masked ]
> *  dev-python/wxpython
> [ Applications found : 7 ]
> 
> Why is it returning packges that don't match what I'm searching for?
> 
> Shouldn't only the last of the ones shown above be returned?

I just tested this on my system as well and am seeing the same (apart from the 
masked ones).
I agree that I would expect only "dev-python/wxpython" to be shown.
"eix wxpython" does work as expected.

--
Joost





[gentoo-user] When did "emerge --search" start returning packages that don't match?

2018-09-17 Thread Grant Edwards
I recently noticed that "emerge --search" stopped working correctly.
It now returns all sorts of packages that don't match the search
sting:

$ emerge --search wxpython | grep '^[^\t ]'

[ Results for search key : wxpython ]
Searching...
*  dev-lang/python
*  dev-python/bpython
*  dev-python/ipython
*  dev-python/pythong [ Masked ]
*  dev-python/twython
*  dev-python/vpython [ Masked ]
*  dev-python/wxpython
[ Applications found : 7 ]

Why is it returning packges that don't match what I'm searching for?

Shouldn't only the last of the ones shown above be returned?

-- 
Grant Edwards   grant.b.edwardsYow! I am a traffic light,
  at   and Alan Ginzberg kidnapped
  gmail.commy laundry in 1927!