Skip to content

Commit

Permalink
groups-manager: More benevolent resolving of packages (RhBug:2013633)
Browse files Browse the repository at this point in the history
= changelog =
msg: groups-manager uses for matching packages full NEVRA and not only name.
type: enhancement
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2013633
  • Loading branch information
m-blaha authored and kontura committed Nov 11, 2021
1 parent bdfb8ed commit 7633169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/groups_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ def langlist_to_strdict(lst):
# find packages according to specifications from command line
packages = set()
for pkg_spec in self.opts.packages:
q = self.base.sack.query().filterm(name__glob=pkg_spec).latest()
subj = dnf.subject.Subject(pkg_spec)
q = subj.get_best_query(self.base.sack, with_nevra=True,
with_provides=False, with_filenames=False).latest()
if not q:
logger.warning(_("No match for argument: {}").format(pkg_spec))
continue
Expand Down

0 comments on commit 7633169

Please sign in to comment.