[yum-commits] cli.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Wed May 22 16:01:09 UTC 2013
cli.py | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 16489d742df877484f05544da29d9bfe130dcd23
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Wed May 22 17:57:03 2013 +0200
Hide the "downloadonly" option when nothing to download.
diff --git a/cli.py b/cli.py
index 8c61ffd..c6673de 100755
--- a/cli.py
+++ b/cli.py
@@ -530,6 +530,8 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
occurred in the pre-transaction checks
"""
def _downloadonly_userconfirm(self):
+ if not stuff_to_download:
+ return self.userconfirm()
return self.userconfirm(prompt=_('Is this ok [y/d/N]: '),
extra={'downloadonly' :
(u'd', _('d'), _('download'),
More information about the Yum-commits
mailing list