Skip to content
Snippets Groups Projects
Commit ec3cbde0 authored by Laurie Reeves's avatar Laurie Reeves Committed by Neal Gompa (ニール・ゴンパ)
Browse files

Load dnf plugins

Plugins are required in cases where they populate variables in repository
urls.
parent 87f92586
Branches
Tags
No related merge requests found
...@@ -51,6 +51,17 @@ class DnfBase(dnf.Base): ...@@ -51,6 +51,17 @@ class DnfBase(dnf.Base):
super(DnfBase, self).__init__() super(DnfBase, self).__init__()
self.parent = parent self.parent = parent
self.md_progress = MDProgress(parent) self.md_progress = MDProgress(parent)
try:
self.init_plugins()
except RuntimeError as err:
logger.info("Failed to init plugins: %s", err)
else:
logger.debug("pre_configure plugins...")
self.pre_configure_plugins()
logger.debug("configure plugins...")
self.configure_plugins()
RELEASEVER = dnf.rpm.detect_releasever(self.conf.installroot) RELEASEVER = dnf.rpm.detect_releasever(self.conf.installroot)
self.conf.substitutions['releasever'] = RELEASEVER self.conf.substitutions['releasever'] = RELEASEVER
self.conf.read() # read the dnf.conf self.conf.read() # read the dnf.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment