Skip to content

Commit

Permalink
Fix minor problem with suggestion printed to terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mracek authored and m-blaha committed Feb 7, 2019
1 parent 8bf8200 commit 2594b59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dnf/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ def cli_run(cli, base):
msg += _("try to add '{}' to skip uninstallable packages").format(
"--skip-broken")
else:
msg += _(" or '%s' to skip uninstallable packages").format("--skip-broken")
msg += _(" or '{}' to skip uninstallable packages").format("--skip-broken")
if cli.base.conf.best:
opt = cli.base.conf._get_option("best")
prio = opt._get_priority()
if prio <= dnf.conf.PRIO_MAINCONFIG:
if not msg:
msg += _("try to add '%s' to use not only best candidate packages").format(
msg += _("try to add '{}' to use not only best candidate packages").format(
"--nobest")
else:
msg += _(" or '%s' to use not only best candidate packages").format(
msg += _(" or '{}' to use not only best candidate packages").format(
"--nobest")
if msg:
logger.info("({})".format(msg))
Expand Down

0 comments on commit 2594b59

Please sign in to comment.