buildroot: remove api temporary directory

Now that no API provider is using the temporary directory to place
its sockets in it anymore, this directory can be removed.
This commit is contained in:
Christian Kellner 2020-07-24 19:40:18 +02:00 committed by Tom Gundersen
parent 0c7284572e
commit aebff47908

View file

@ -41,7 +41,6 @@ class BuildRoot(contextlib.AbstractContextManager):
self._libdir = libdir
self._runner = runner
self._apis = []
self.api = None
self.dev = None
self.var = None
@ -70,11 +69,6 @@ class BuildRoot(contextlib.AbstractContextManager):
# create throw-away data that it does not want to put into a
# tmpfs.
# Used to be bound to /run/osbuild/api, but not anymore, still around
# as the APIs have yet to be converted to not use temp directory anymore
api = tempfile.TemporaryDirectory(prefix="osbuild-api-", dir=self._rundir)
self.api = self._exitstack.enter_context(api)
dev = tempfile.TemporaryDirectory(prefix="osbuild-dev-", dir=self._rundir)
self.dev = self._exitstack.enter_context(dev)