osbuild: drop legacy input format
This drops support for passing in non-manifest style pipelines
directly. It used to be that we directly pass in the pipeline
description, but it got changed to a proper manifest format in:
commit e48c2f178c
Author: Tom Gundersen <teg@jklm.no>
Date: Thu Feb 13 17:44:54 2020 +0100
osbuild: allow the sources to be passed in on stdin
With 2 releases in between, we are now far enough to drop the old
format. All code has been converted, our API guarantee is not in place,
yet, so lets just drop the legacy code and fully commit to the
manifest.
Fixes #265.
This commit is contained in:
parent
4587d97522
commit
926a6a56a2
1 changed files with 2 additions and 7 deletions
|
|
@ -59,13 +59,8 @@ def main():
|
|||
manifest = json.load(f)
|
||||
f.close()
|
||||
|
||||
if "pipeline" in manifest:
|
||||
pipeline = manifest["pipeline"]
|
||||
sources_options = manifest.get("sources", {})
|
||||
else:
|
||||
# backwards compatibility
|
||||
pipeline = manifest
|
||||
sources_options = {}
|
||||
pipeline = manifest.get("pipeline", {})
|
||||
sources_options = manifest.get("sources", {})
|
||||
|
||||
if args.sources:
|
||||
with open(args.sources) as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue