Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787416 - emerge --ask won't take "Yes"
Summary: emerge --ask won't take "Yes"
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-01 14:58 UTC by Jonathan Snow
Modified: 2023-12-30 00:44 UTC (History)
0 users

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 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():