dnf5: skip pkgs that don't satisfy bugfix/security when specified (#85111)

(cherry picked from commit 107842fd7d)
pull/85465/head
Martin Krizek 7 months ago committed by Matt Davis
parent c83b70a04c
commit da59710961

@ -0,0 +1,2 @@
bugfixes:
- "dnf5 - when ``bugfix`` and/or ``security`` is specified, skip packages that do not have any such updates, even for new versions of libdnf5 where this functionality changed and it is considered failure"

@ -722,6 +722,7 @@ class Dnf5Module(YumDnf):
if self.security: if self.security:
types.append("security") types.append("security")
advisory_query.filter_type(types) advisory_query.filter_type(types)
conf.skip_unavailable = True # ignore packages that are of a different type, for backwards compat
settings.set_advisory_filter(advisory_query) settings.set_advisory_filter(advisory_query)
goal = libdnf5.base.Goal(base) goal = libdnf5.base.Goal(base)

Loading…
Cancel
Save