We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d59f99 commit 1743ef0Copy full SHA for 1743ef0
1 file changed
dnf-plugins/diff.py
@@ -97,10 +97,15 @@ def _download_packages(self, to_download):
97
subj = dnf.subject.Subject(pkg_spec)
98
99
q = subj.get_best_query(self.base.sack).available().latest()
100
- if not list(q):
+ sources = list(q)
101
+ if not sources:
102
logger.warning(_("package {0} not available in repos, trying local cache".format(pkg_spec)))
- else:
103
- pkg_list.extend(list(q))
+ continue
104
+
105
+ if len(sources) > 1:
106
+ logger.warning(_("package %s is in multiple repositories"), pkg_spec)
107
108
+ pkg_list.extend(sources[:1])
109
110
self.base.download_packages(pkg_list)
111
0 commit comments