Skip to content

Commit

Permalink
Load dnf plugins
Browse files Browse the repository at this point in the history
Plugins are required in cases where they populate variables in repository
urls.
  • Loading branch information
Laurie-Reeves authored and Conan-Kudo committed Aug 31, 2020
1 parent 87f9258 commit ec3cbde
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/dnfdaemon/server/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ def __init__(self, parent):
super(DnfBase, self).__init__()
self.parent = 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)
self.conf.substitutions['releasever'] = RELEASEVER
self.conf.read() # read the dnf.conf
Expand Down

0 comments on commit ec3cbde

Please sign in to comment.