summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-09-28 21:45:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 14:11:38 +0100
commit922503f4c1d664edc5d3c0f66f262b3b4c3e5c56 (patch)
treeaf791653d208cc5674dd75b4ca3ca93896f42b6a /bitbake/lib/toaster/orm
parent0bc0a44affe689422fb8d05b19e06338f6901629 (diff)
downloadpoky-922503f4c1d664edc5d3c0f66f262b3b4c3e5c56.tar.gz
bitbake: toaster: Create a relationship between build information and toaster layers
Previously this layer relationship was done by trying to match path information that came back to the buildinfohelper with trying to query for data in toaster's layers table. This rarely matched due to the lose coupling. (Bitbake rev: 838e77c7c3c4006abd1327343a004590ab652de9) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 4025702fbc..8d7388e2e6 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -260,7 +260,7 @@ class Project(models.Model):
260 for l in self.projectlayer_set.all().order_by("pk"): 260 for l in self.projectlayer_set.all().order_by("pk"):
261 commit = l.layercommit.get_vcs_reference() 261 commit = l.layercommit.get_vcs_reference()
262 print("ii Building layer ", l.layercommit.layer.name, " at vcs point ", commit) 262 print("ii Building layer ", l.layercommit.layer.name, " at vcs point ", commit)
263 BRLayer.objects.create(req = br, name = l.layercommit.layer.name, giturl = l.layercommit.layer.vcs_url, commit = commit, dirpath = l.layercommit.dirpath) 263 BRLayer.objects.create(req = br, name = l.layercommit.layer.name, giturl = l.layercommit.layer.vcs_url, commit = commit, dirpath = l.layercommit.dirpath, layer_version=l.layercommit)
264 264
265 br.state = BuildRequest.REQ_QUEUED 265 br.state = BuildRequest.REQ_QUEUED
266 now = timezone.now() 266 now = timezone.now()