When doing an emerge -av <package> and the package is not already installed and the package name is ambiguous, a full search with the package name as search term is triggered.
Please remove this feature or at least make it triggered with an optional flag.
Currently this is coupled to --quiet which is just plain wrong.
Quickfix for now:
line 9035 from
if "--quiet" in myopts:
Steps to Reproduce:
1. emerge --unmerge mc
2. emerge -av mc
a list of 107 packages containing "mc"
only the 2 conflicting names should be listed
as with emerge -av --quiet mc
!!! The short ebuild name "mc" is ambiguous. Please specify
!!! one of the following fully-qualified ebuild names instead:
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 3.14.0-gentoo x86_64)
stripped other unneeded infos here.
There's a patch in the following branch:
I've posted it for review here:
I applied the patch and now the behavior is as expected.
As soon this is merged, the bug can be closed.
This is in the master branch:
Released in portage-2.2.19