Red Hat Bugzilla – Bug 194270
yum's default user prompt answer should be configurable
Last modified: 2014-01-21 17:54:26 EST
Anytime yum needs to prompt the user with a yes/no question (via the
userconfirm() function), the default is always set to 'no'. This effectively
turns the prompt into 'would you like to cancel?' instead of the more
traditional 'are you sure?'. The default answer should really be 'yes'
(prompting the user is enough of an interruption; forcing him to enter two
keystrokes instead of one is unnecessary).
I have attached a set of patches which add the configuration option
'default_is_no', which defaults to '1', which preserves the original
functionality. The option could use a better name; I just used the first thing
which came to mind.
Created attachment 130632 [details]
I don't agree and adding this as an option just seems excessive.
Are 2 keystrokes really all that difficult?
closing as wontfix
> Are 2 keystrokes really all that difficult?
They are not difficult, they are counter-intuitive and inconsistent with other package management interfaces. Having used to e.g. apt, you press Enter meaning "Yes, i confirm", and it appears that you have cancelled the operation instead of confirming it. This is still a problem after several releases with Fedora, which is why I found this bug report.
The patch offered doesn't change the defaults, so why reject it?