pipeline: remove left-over temp directory

The source temporary directory was left over from the time when
stages were using the source server API.
This commit is contained in:
Christian Kellner 2021-05-27 14:26:04 +00:00 committed by Tom Gundersen
parent 2b19e534e6
commit c9327a7a79

View file

@ -70,12 +70,8 @@ class Stage:
build_root = buildroot.BuildRoot(build_tree, runner, libdir, store.tmp)
cm.enter_context(build_root)
sources_tmp = store.tempdir(prefix="osbuild-sources-output-")
sources_output = cm.enter_context(sources_tmp)
args = {
"tree": "/run/osbuild/tree",
"sources": "/run/osbuild/sources",
"options": self.options,
"inputs": {},
"meta": {
@ -84,8 +80,7 @@ class Stage:
}
ro_binds = [
f"{self.info.path}:/run/osbuild/bin/{self.name}",
f"{sources_output}:/run/osbuild/sources"
f"{self.info.path}:/run/osbuild/bin/{self.name}"
]
storeapi = objectstore.StoreServer(store)