From: Michael Tremer Date: Wed, 5 Feb 2025 10:19:02 +0000 (+0000) Subject: config: Initialize Pakfire in stub mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f3b11f0e6f64ddfeac469c5cb5d616c87a569f3;p=pbs.git config: Initialize Pakfire in stub mode 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 --- diff --git a/src/buildservice/config.py b/src/buildservice/config.py index eced838d..7c987518 100644 --- a/src/buildservice/config.py +++ b/src/buildservice/config.py @@ -78,14 +78,13 @@ class PakfireConfig(base.Object): 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