diff --git a/dnf/base.py b/dnf/base.py index ff7c6fe77e..8c99979777 100644 --- a/dnf/base.py +++ b/dnf/base.py @@ -2244,11 +2244,7 @@ def distro_sync(self, pkg_spec=None): if pkg_spec is None: self._goal.distupgrade_all() else: - subject = dnf.subject.Subject(pkg_spec) - solution = subject.get_best_solution(self.sack, with_src=False) - solution["query"].filterm(reponame__neq=hawkey.SYSTEM_REPO_NAME) - sltrs = subject._get_best_selectors(self, solution=solution, - obsoletes=self.conf.obsoletes, reports=True) + sltrs = dnf.subject.Subject(pkg_spec)._get_best_selectors(self, obsoletes=self.conf.obsoletes, reports=True) if not sltrs: logger.info(_('No package %s installed.'), pkg_spec) return 0