Blob Blame History Raw
From 33ebf580e5673875624f20c0940107033a64ac93 Mon Sep 17 00:00:00 2001
From: Jaroslav Mracek <jmracek@redhat.com>
Date: Thu, 7 Feb 2019 10:59:54 +0100
Subject: [PATCH] Fix minor problem with suggestion printed to terminal

---
 dnf/cli/main.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dnf/cli/main.py b/dnf/cli/main.py
index bf6d994..c335f29 100644
--- a/dnf/cli/main.py
+++ b/dnf/cli/main.py
@@ -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))
--
libgit2 0.27.7