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

Bug 787416

Summary: emerge --ask won't take "Yes"
Product: Portage Development Reporter: Jonathan Snow <jesnow>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=787545
https://bugs.gentoo.org/show_bug.cgi?id=180506
Whiteboard:
Package list:
Runtime testing required: ---

Description Jonathan Snow 2021-05-01 14:58:05 UTC
When emerge has packages to merge it prompts for "Yes/No", but if you type in "Yes"  the response is not understood. 


Would you like to merge these packages? [Yes/No] Yes
Sorry, response 'Yes' not understood. [Yes/No]
Comment 1 Zac Medico gentoo-dev 2021-05-01 21:48:20 UTC
I tried to trigger your problem, but it worked for me when I typed Yes, which led me to discover CTRL C issues bug 787542 and bug 787545.

Case insensitivity arises from conversion to uppercase with the upper() calls on this line:

https://gitweb.gentoo.org/proj/portage.git/tree/lib/_emerge/UserQuery.py?h=portage-3.0.18#n65

> 	for key in responses:
> 		# An empty response will match the
> 		# first value in responses.
> 		if response.upper()==key[:len(response)].upper():