Skip to content

Commit

Permalink
Hide the "downloadonly" option when nothing to download.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zdenek Pavlas committed May 22, 2013
1 parent b7e910b commit 16489d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ def doTransaction(self):
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'),
Expand Down

0 comments on commit 16489d7

Please sign in to comment.