inputs/ostree: use ostree prefix for temp dir

Use `ostree-ouput` instead of `files-output` as prefix for the
temporary directory prefix.
Also fix the description of the "origin" to reflect that
pipeline and source origins are supported.
Additionally remove some dead code.
This commit is contained in:
Christian Kellner 2021-03-11 21:59:17 +00:00 committed by Achilleas Koutsou
parent 87a7b4ae5f
commit 36c7d08f6e

View file

@ -28,7 +28,7 @@ SCHEMA = """
"enum": ["org.osbuild.ostree"]
},
"origin": {
"description": "The origin of the input (must be 'org.osbuild.source')",
"description": "The origin of the input (pipeline or source)",
"type": "string",
"enum": ["org.osbuild.source", "org.osbuild.pipeline"]
},
@ -108,8 +108,7 @@ def main():
origin = args["origin"]
store = StoreClient(connect_to=args["api"]["store"])
source = store.source("org.osbuild.files")
output = store.mkdtemp(prefix="files-output")
output = store.mkdtemp(prefix="ostree-output")
if origin == "org.osbuild.pipeline":
for ref, options in refs.items():