summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-04-06 17:46:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 23:00:10 +0100
commitef9e126227d3bdee86c1592e2baa43d21e6a32df (patch)
treeed5b92833e0f133e96bf971ae67dd7146f934fcd
parenta8f986d73a84f28fa8b116b91fb30c5d2cd4edbe (diff)
downloadopenembedded-core-contrib-ef9e126227d3bdee86c1592e2baa43d21e6a32df.tar.gz
toaster: remove release API
This API is quite dangerous as it removes build directory. It's not used anywhere and most probably will not be used in future as toaster is going to have one build directory per project. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/bldcontrol/bbcontroller.py6
-rw-r--r--lib/toaster/bldcontrol/localhostbecontroller.py6
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/toaster/bldcontrol/bbcontroller.py b/lib/toaster/bldcontrol/bbcontroller.py
index 535a3986ad..2ca26612d4 100644
--- a/lib/toaster/bldcontrol/bbcontroller.py
+++ b/lib/toaster/bldcontrol/bbcontroller.py
@@ -163,12 +163,6 @@ class BuildEnvironmentController(object):
"""
raise NotImplementedError("Must return the REST URL of the artifact")
- def release(self):
- """ This stops the server and releases any resources. After this point, all resources
- are un-available for further reference
- """
- raise NotImplementedError("Must override BE release")
-
def triggerBuild(self, bitbake, layers, variables, targets):
raise NotImplementedError("Must override BE release")
diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py
index 7d6abe69e2..1ccdd24b89 100644
--- a/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -255,12 +255,6 @@ class LocalhostBEController(BuildEnvironmentController):
def readServerLogFile(self):
return open(os.path.join(self.be.builddir, "toaster_server.log"), "r").read()
- def release(self):
- assert self.be.sourcedir and os.path.exists(self.be.builddir)
- import shutil
- shutil.rmtree(os.path.join(self.be.sourcedir, "build"))
- assert not os.path.exists(self.be.builddir)
-
def triggerBuild(self, bitbake, layers, variables, targets):
# set up the build environment with the needed layers