formats/v1: use new Stage.add_input
Instead of manually constructing and appending the input for stages (here the stages that replace the assembler), use the new `Stage.add_input` method.
This commit is contained in:
parent
9e8b254687
commit
57ccf403e1
1 changed files with 1 additions and 3 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
from typing import Dict, Optional, Tuple
|
||||
from osbuild.meta import Index, ValidationResult
|
||||
from ..inputs import Input
|
||||
from ..pipeline import Manifest, Pipeline, detect_host_runner
|
||||
|
||||
|
||||
|
|
@ -64,9 +63,8 @@ def load_assembler(description: Dict, index: Index, manifest: Manifest):
|
|||
|
||||
stage = pipeline.add_stage(info, options, {})
|
||||
info = index.get_module_info("Input", "org.osbuild.tree")
|
||||
ip = Input(info, "org.osbuild.pipeline", {})
|
||||
ip = stage.add_input("tree", info, "org.osbuild.pipeline")
|
||||
ip.add_reference(base)
|
||||
stage.inputs = {"tree": ip}
|
||||
return pipeline
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue