From ec3cbde0e7568622748f9225870f2b7c8d1bac9b Mon Sep 17 00:00:00 2001 From: Laurie Reeves <laurie.reeves@userful.com> Date: Tue, 18 Aug 2020 14:53:09 -0600 Subject: [PATCH] Load dnf plugins Plugins are required in cases where they populate variables in repository urls. --- python/dnfdaemon/server/backend.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python/dnfdaemon/server/backend.py b/python/dnfdaemon/server/backend.py index be85750..bf9a95a 100644 --- a/python/dnfdaemon/server/backend.py +++ b/python/dnfdaemon/server/backend.py @@ -51,6 +51,17 @@ class DnfBase(dnf.Base): 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 -- GitLab