pipeline: make them "exportable"

Add a new `export` property to the `Pipeline` object that indicates
whether a the result, i.e. the tree after the pipelines has been
built, should be exported, i.e. copied to the output directory.
In the current format (v1), the main pipeline, gets marked as such
by the corresponding loader.
This commit is contained in:
Christian Kellner 2021-01-06 15:56:00 +01:00
parent 42dd3c1e2d
commit 88acd7bb00
2 changed files with 3 additions and 1 deletions

View file

@ -76,6 +76,7 @@ def load_pipeline(description: Dict, index: Index, manifest: Manifest) -> Pipeli
asm.inputs = {
"tree": Input(info, {"pipeline": {"id": pipeline.tree_id}})
}
pipeline.export = True
return pipeline