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:
parent
82a2be53d4
commit
61e32ff3ef
1 changed files with 8 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue