|
|
@ -562,7 +562,11 @@ class Dnf5Module(YumDnf):
|
|
|
|
for repo in repo_query:
|
|
|
|
for repo in repo_query:
|
|
|
|
repo.enable()
|
|
|
|
repo.enable()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
sack.load_repos()
|
|
|
|
sack.load_repos()
|
|
|
|
|
|
|
|
except AttributeError:
|
|
|
|
|
|
|
|
# dnf5 < 5.2.0.0
|
|
|
|
|
|
|
|
sack.update_and_load_enabled_repos(True)
|
|
|
|
|
|
|
|
|
|
|
|
if self.update_cache and not self.names and not self.list:
|
|
|
|
if self.update_cache and not self.names and not self.list:
|
|
|
|
self.module.exit_json(
|
|
|
|
self.module.exit_json(
|
|
|
@ -594,7 +598,11 @@ class Dnf5Module(YumDnf):
|
|
|
|
self.module.exit_json(msg="", results=results, rc=0)
|
|
|
|
self.module.exit_json(msg="", results=results, rc=0)
|
|
|
|
|
|
|
|
|
|
|
|
settings = libdnf5.base.GoalJobSettings()
|
|
|
|
settings = libdnf5.base.GoalJobSettings()
|
|
|
|
|
|
|
|
try:
|
|
|
|
settings.set_group_with_name(True)
|
|
|
|
settings.set_group_with_name(True)
|
|
|
|
|
|
|
|
except AttributeError:
|
|
|
|
|
|
|
|
# dnf5 < 5.2.0.0
|
|
|
|
|
|
|
|
settings.group_with_name = True
|
|
|
|
if self.bugfix or self.security:
|
|
|
|
if self.bugfix or self.security:
|
|
|
|
advisory_query = libdnf5.advisory.AdvisoryQuery(base)
|
|
|
|
advisory_query = libdnf5.advisory.AdvisoryQuery(base)
|
|
|
|
types = []
|
|
|
|
types = []
|
|
|
|