diff --git a/osbuild/pipeline.py b/osbuild/pipeline.py index 5223ad4c..620c6f6e 100644 --- a/osbuild/pipeline.py +++ b/osbuild/pipeline.py @@ -232,16 +232,16 @@ class Pipeline: interactive, libdir, secrets) - # Cleanup the build tree used to build `tree` - # which is not needed anymore - t.cleanup() results["build"] = r if not r["success"]: - tree.cleanup() results["success"] = False return results, None, None + # Cleanup the build tree (`t`) which was used to + # build `tree`; it is now not needed anymore + t.cleanup() + build_tree = tree # Create a new tree. The base is our tree_id because if that