From aebff4790847a22771c9d8d2ea88c04a7f71175d Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 24 Jul 2020 19:40:18 +0200 Subject: [PATCH] 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. --- osbuild/buildroot.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/osbuild/buildroot.py b/osbuild/buildroot.py index 502f3355..c0a72252 100644 --- a/osbuild/buildroot.py +++ b/osbuild/buildroot.py @@ -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)