]> git.ipfire.org Git - pakfire.git/commitdiff
daemon: await the build task to fetch any exceptions
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Nov 2022 21:40:35 +0000 (21:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Nov 2022 21:40:35 +0000 (21:40 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/daemon.py

index dd001e05393496f165f9930656b254d45a2c2fac..166f28e78539bf3e81ab9bb0d6886931ec83fbac 100644 (file)
@@ -253,6 +253,9 @@ class Worker(multiprocessing.Process):
                                while not build.done():
                                        await logger.stream(timeout=1)
 
+                               # Await the build task (which would raise any exceptions)
+                               await build
+
                        # Catch any other Exception
                        except Exception as e:
                                raise e