summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/models.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py
index a3a49ce472..bb613c68a2 100644
--- a/bitbake/lib/toaster/bldcontrol/models.py
+++ b/bitbake/lib/toaster/bldcontrol/models.py
@@ -42,13 +42,17 @@ class BuildEnvironment(models.Model):
42 def get_artifact(self, path): 42 def get_artifact(self, path):
43 if self.betype == BuildEnvironment.TYPE_LOCAL: 43 if self.betype == BuildEnvironment.TYPE_LOCAL:
44 return open(path, "r") 44 return open(path, "r")
45 raise Exception("FIXME: artifact download not implemented for build environment type %s" % self.get_betype_display()) 45 raise NotImplementedError("FIXME: artifact download not implemented "\
46 "for build environment type %s" % \
47 self.get_betype_display())
46 48
47 def has_artifact(self, path): 49 def has_artifact(self, path):
48 import os 50 import os
49 if self.betype == BuildEnvironment.TYPE_LOCAL: 51 if self.betype == BuildEnvironment.TYPE_LOCAL:
50 return os.path.exists(path) 52 return os.path.exists(path)
51 raise Exception("FIXME: has artifact not implemented for build environment type %s" % self.get_betype_display()) 53 raise NotImplementedError("FIXME: has artifact not implemented for "\
54 "build environment type %s" % \
55 self.get_betype_display())
52 56
53# a BuildRequest is a request that the scheduler will build using a BuildEnvironment 57# a BuildRequest is a request that the scheduler will build using a BuildEnvironment
54# the build request queue is the table itself, ordered by state 58# the build request queue is the table itself, ordered by state