This way, Pakfire does not need a path, won't initialize the database
and so on. It simply can be used to perform dependency solving which is
all we need here.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
log.debug(config)
# Launch a new Pakfire instance (in a separate thread)
- async with self.backend.tempdir() as path:
- return await asyncio.to_thread(
- pakfire.Pakfire,
- ctx = ctx,
- path = path,
- arch = self.arch,
- config = config,
- )
+ return await asyncio.to_thread(
+ pakfire.Pakfire,
+ stub = True,
+ ctx = ctx,
+ arch = self.arch,
+ config = config,
+ )
async def __aexit__(self, type, value, traceback):
pass