mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
a403ddbbba
commit
3b6e5df2aa
@@ -70,19 +70,19 @@ class BuildEnvironment(models.Model):
|
|||||||
return "binary/octet-stream"
|
return "binary/octet-stream"
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return "binary/octet-stream"
|
return "binary/octet-stream"
|
||||||
raise Exception("FIXME: artifact type not implemented for build environment type %s" % be.get_betype_display())
|
raise Exception("FIXME: artifact type not implemented for build environment type %s" % self.get_betype_display())
|
||||||
|
|
||||||
|
|
||||||
def get_artifact(self, path):
|
def get_artifact(self, path):
|
||||||
if self.betype == BuildEnvironment.TYPE_LOCAL:
|
if self.betype == BuildEnvironment.TYPE_LOCAL:
|
||||||
return open(path, "r")
|
return open(path, "r")
|
||||||
raise Exception("FIXME: artifact download not implemented for build environment type %s" % be.get_betype_display())
|
raise Exception("FIXME: artifact download not implemented for build environment type %s" % self.get_betype_display())
|
||||||
|
|
||||||
def has_artifact(self, path):
|
def has_artifact(self, path):
|
||||||
import os
|
import os
|
||||||
if self.betype == BuildRequest.TYPE_LOCAL:
|
if self.betype == BuildEnvironment.TYPE_LOCAL:
|
||||||
return os.path.exists(path)
|
return os.path.exists(path)
|
||||||
raise Exception("FIXME: has artifact not implemented for build environment type %s" % be.get_betype_display())
|
raise Exception("FIXME: has artifact not implemented for build environment type %s" % self.get_betype_display())
|
||||||
|
|
||||||
# a BuildRequest is a request that the scheduler will build using a BuildEnvironment
|
# a BuildRequest is a request that the scheduler will build using a BuildEnvironment
|
||||||
# the build request queue is the table itself, ordered by state
|
# the build request queue is the table itself, ordered by state
|
||||||
|
|||||||
Reference in New Issue
Block a user