From c19ce847a546fabb2c2e33ca61753f69119ee1e4 Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Fri, 22 Sep 2023 12:55:39 +0000 Subject: [PATCH] distro-sync: Print better info message when no match Print better error message when the package specified in the argument is installed but is not available in the currently enabled repositories. Resolves: https://issues.redhat.com/browse/RHEL-7018 --- dnf/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf/base.py b/dnf/base.py index c6edb322dc..6d33e250ac 100644 --- a/dnf/base.py +++ b/dnf/base.py @@ -2257,7 +2257,7 @@ def distro_sync(self, pkg_spec=None): sltrs = subject._get_best_selectors(self, solution=solution, obsoletes=self.conf.obsoletes, reports=True) if not sltrs: - logger.info(_('No package %s installed.'), pkg_spec) + logger.info(_('No match for argument: %s'), pkg_spec) return 0 for sltr in sltrs: self._goal.distupgrade(select=sltr)