]> git.ipfire.org Git - pakfire.git/commitdiff
daemon: Do not attempt to delete configuration
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Aug 2023 16:15:13 +0000 (16:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Aug 2023 16:15:13 +0000 (16:15 +0000)
The format has been changed and there is no longer a file that needs to
be cleaned up.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/daemon.py

index 3438e030009149fa4c41b2573c0c6f29f2fce4a9..9c34bc60dcb577133bc6a8e673f61114c7440efb 100644 (file)
@@ -328,11 +328,7 @@ class Worker(multiprocessing.Process):
 
        def _build(self, pkg, arch=None, logger=None, **kwargs):
                # Setup Pakfire instance
-               try:
-                       p = _pakfire.Pakfire(arch=arch, conf=self.pakfire_conf, logger=logger)
-               finally:
-                       # Delete the configuration file
-                       os.unlink(self.pakfire_conf)
+               p = _pakfire.Pakfire(arch=arch, conf=self.pakfire_conf, logger=logger)
 
                # Run the build
                return p.build(pkg, **kwargs)