Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 917119

Summary: sys-apps/portage: uninstall command should indicate ambiguous package names
Product: Portage Development Reporter: lexofleviafan
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description lexofleviafan 2023-11-10 12:33:55 UTC
When an ambiguous package is passed to the uninstall command (emerge --unmerge/--depclean), the output is exactly the same as when the package doesn't exist.

Reproducible: Always

Steps to Reproduce:
1.Run an uninstall (depclean or unmerge) command on a term matching multiple fully-qualified installed ebuild names, e.g.:
>$ emerge --ask --depclean man
Actual Results:  
The output describing the error is in the following format:
>--- Couldn't find 'man' to depclean.


Expected Results:  
The output should contain information similar to the output of install command in similar situation; e.g. based on `emerge --quiet man`:
>--- !!! The short ebuild name "man" is ambiguous. Please specify
>--- !!! one of the following fully-qualified ebuild names instead:
>---
>---     acct-group/man
>---     acct-user/man
>---     virtual/man
(Naturally, the output should only contain already installed packages.)