From d70a8d641995e398a3c5b6bad38db3276670d474 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Sun, 13 Feb 2022 09:23:47 +0000 Subject: [PATCH] pipeline: always invoke monitor.finish Also invoke `monitor.finish` when the pipeline failed to built. There is no need to not invoke it in that case. This also will allow us to print some information in the monitor in tha case. --- osbuild/pipeline.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osbuild/pipeline.py b/osbuild/pipeline.py index 3f7d66a7..25e5dd37 100644 --- a/osbuild/pipeline.py +++ b/osbuild/pipeline.py @@ -348,10 +348,10 @@ class Pipeline: monitor.begin(self) - results = self.build_stages(store, monitor, libdir, stage_timeout) - - if not results["success"]: - return results + results = self.build_stages(store, + monitor, + libdir, + stage_timeout) monitor.finish(results)