Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
import logging
import os
+import pakfire
import shlex
import subprocess
import sys
import tempfile
import traceback
-import pakfire
-
from . import bootloaders
from . import disk
from . import i18n
"""
Calls Pakfire and has it load its configuration
"""
- return pakfire.Pakfire(self.root, arch=self.arch,
- conf=self.pakfire_conf, **kwargs)
+ logger = log.getChild("pakfire")
+
+ # Create a new context
+ ctx = pakfire.Ctx()
+
+ # Configure the logger
+ ctx.set_logger(logger)
+
+ # Create a new pakfire instance
+ return pakfire.Pakfire(
+ ctx = ctx,
+ path = self.root,
+ arch = self.arch,
+ config = self.pakfire_conf,
+ **kwargs,
+ )
def _select_bootloaders(self):
"""