[PATCH] Add a hint to the [y/d/N] prompt. BZ 980666
Zdenek Pavlas
zpavlas at redhat.com
Wed Aug 14 11:58:15 UTC 2013
---
cli.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cli.py b/cli.py
index 0eece17..3532761 100755
--- a/cli.py
+++ b/cli.py
@@ -543,7 +543,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
# Note that we shouldn't just remove the 'd' option, or the options
# yum accepts will be different which is bad. So always accept it,
# but change the prompt.
- dl_only = extra={'downloadonly' :
+ dl_only = {'downloadonly' :
(u'd', _('d'), _('download'),
_('downloadonly'))}
if not stuff_to_download:
@@ -551,7 +551,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
if ret == 'downloadonly':
ret = None
return ret
- return self.userconfirm(prompt=_('Is this ok [y/d/N]: '),
+ return self.userconfirm(prompt=_('Is this ok (d to only download packages) [y/d/N]: '),
extra=dl_only)
# just make sure there's not, well, nothing to do
--
1.7.11.7
More information about the Yum-devel
mailing list