summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/models.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-07-28 15:24:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 11:29:35 +0100
commit3b6e5df2aa6f0f3db939239091ff00dd16785d24 (patch)
treef56052b1b8804e96ab3ba84d7a924cd20d88b0a5 /bitbake/lib/toaster/bldcontrol/models.py
parenta403ddbbbab3f83e59214ddf9e67210cd07fa2cc (diff)
downloadpoky-3b6e5df2aa6f0f3db939239091ff00dd16785d24.tar.gz
bitbake: bitbake: toaster: Fix usage of wrong variables
Replaced nonexistent variable 'be' with self in models.py/BuildEnvironment methods. Fixed typo: BuildRequest.TYPE_LOCAL -> BuildEnvironment.TYPE_LOCAL (Bitbake rev: ed6094f78c75aab776a82967101d9c57e38e2c4d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py
index 6f408660de..b61de58a3e 100644
--- a/bitbake/lib/toaster/bldcontrol/models.py
+++ b/bitbake/lib/toaster/bldcontrol/models.py
@@ -70,19 +70,19 @@ class BuildEnvironment(models.Model):
70 return "binary/octet-stream" 70 return "binary/octet-stream"
71 except ImportError: 71 except ImportError:
72 return "binary/octet-stream" 72 return "binary/octet-stream"
73 raise Exception("FIXME: artifact type not implemented for build environment type %s" % be.get_betype_display()) 73 raise Exception("FIXME: artifact type not implemented for build environment type %s" % self.get_betype_display())
74 74
75 75
76 def get_artifact(self, path): 76 def get_artifact(self, path):
77 if self.betype == BuildEnvironment.TYPE_LOCAL: 77 if self.betype == BuildEnvironment.TYPE_LOCAL:
78 return open(path, "r") 78 return open(path, "r")
79 raise Exception("FIXME: artifact download not implemented for build environment type %s" % be.get_betype_display()) 79 raise Exception("FIXME: artifact download not implemented for build environment type %s" % self.get_betype_display())
80 80
81 def has_artifact(self, path): 81 def has_artifact(self, path):
82 import os 82 import os
83 if self.betype == BuildRequest.TYPE_LOCAL: 83 if self.betype == BuildEnvironment.TYPE_LOCAL:
84 return os.path.exists(path) 84 return os.path.exists(path)
85 raise Exception("FIXME: has artifact not implemented for build environment type %s" % be.get_betype_display()) 85 raise Exception("FIXME: has artifact not implemented for build environment type %s" % self.get_betype_display())
86 86
87# a BuildRequest is a request that the scheduler will build using a BuildEnvironment 87# a BuildRequest is a request that the scheduler will build using a BuildEnvironment
88# the build request queue is the table itself, ordered by state 88# the build request queue is the table itself, ordered by state