Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917698 - sys-apps/portage: emerge --ask could ask for input instead of failing on ambiguous package atom
Summary: sys-apps/portage: emerge --ask could ask for input instead of failing on ambi...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-22 06:57 UTC by Michał Górny
Modified: 2024-01-20 18:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-11-22 06:57:00 UTC
Rather than failing and expecting me to change the CLI args, emerge in --ask mode could ask me to input a number 1/2 to select the package to build.

```
# emerge -1v wcwidth

These are the packages that would be merged, in order:

Calculating dependencies  

  
[ Results for search key : wcwidth ]
*  dev-haskell/wcwidth
      Latest version available: 0.0.2
      Latest version installed: [ Not Installed ]
      Size of files: 5 KiB
      Homepage:      https://github.com/solidsnack/wcwidth/
      Description:   Native wcwidth
      License:       BSD

*  dev-python/wcwidth
      Latest version available: 0.2.11
      Latest version installed: 0.2.11
      Size of files: 98 KiB
      Homepage:      https://pypi.org/project/wcwidth/ https://github.com/jquast/wcwidth/
      Description:   Measures number of Terminal column cells of wide-character codes
      License:       MIT

[ Applications found : 2 ]

!!! The short ebuild name "wcwidth" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.

... done!
Dependency resolution took 4.46 s (backtrack: 0/20).
```