pipeline: return new-style result from build pipeline

Commit 82a2be53d introduced a new return type from `Pipeline.run()`. It
changed the caller in `__main__.py`, but missed that the build pipeline
uses the same function.
This commit is contained in:
Lars Karlitski 2019-12-15 11:20:40 +01:00
parent 82a2be53d4
commit 61e32ff3ef

View file

@ -201,11 +201,15 @@ class Pipeline:
def run(self, store, interactive=False, libdir=None):
os.makedirs("/run/osbuild", exist_ok=True)
object_store = objectstore.ObjectStore(store)
if self.build:
if not self.build.run(store, interactive, libdir):
return False
results = {}
if self.build:
r = self.build.run(store, interactive, libdir)
results["build"] = r
if not r["success"]:
results["success"] = False
return results
with self.get_buildtree(object_store) as build_tree:
if self.stages:
if not object_store.contains(self.tree_id):