diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-03-04 15:52:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-16 17:44:07 +0000 |
commit | cca517056bd2a195f33a7f2945df38af1a17abdd (patch) | |
tree | ef7f280631b923cedd9e8d9d5bc1fac5389caf5c /bitbake/lib/toaster/orm/models.py | |
parent | 42d1b65d1543cbb334e776bf0193ea9a8a14799e (diff) | |
download | poky-cca517056bd2a195f33a7f2945df38af1a17abdd.tar.gz |
bitbake: toasterui: identify proper layer in build mode
In build mode, instead of creating our own layer objects,
we identify the layer objects that the build system set up.
[YOCTO #7378]
(Bitbake rev: 22962b540ace6868cb357c0fd13f01ffd24449c4)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 4d1dcbc9f3..80e6d9288c 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -195,14 +195,8 @@ class Project(models.Model): | |||
195 | dirpath = self.bitbake_version.dirpath) | 195 | dirpath = self.bitbake_version.dirpath) |
196 | 196 | ||
197 | for l in self.projectlayer_set.all().order_by("pk"): | 197 | for l in self.projectlayer_set.all().order_by("pk"): |
198 | commit = l.layercommit.commit | 198 | commit = l.layercommit.get_vcs_reference() |
199 | print("ii Building layer ", l.layercommit.layer.name, " at commit ", commit) | 199 | print("ii Building layer ", l.layercommit.layer.name, " at vcs point ", commit) |
200 | if l.layercommit.up_branch: | ||
201 | commit = l.layercommit.up_branch.name | ||
202 | print("ii Building layer ", l.layercommit.layer.name, " at upbranch ", commit) | ||
203 | if l.layercommit.branch: | ||
204 | commit = l.layercommit.branch | ||
205 | print("ii Building layer ", l.layercommit.layer.name, " at actual_branch ", commit) | ||
206 | BRLayer.objects.create(req = br, name = l.layercommit.layer.name, giturl = l.layercommit.layer.vcs_url, commit = commit, dirpath = l.layercommit.dirpath) | 200 | BRLayer.objects.create(req = br, name = l.layercommit.layer.name, giturl = l.layercommit.layer.vcs_url, commit = commit, dirpath = l.layercommit.dirpath) |
207 | for t in self.projecttarget_set.all(): | 201 | for t in self.projecttarget_set.all(): |
208 | BRTarget.objects.create(req = br, target = t.target, task = t.task) | 202 | BRTarget.objects.create(req = br, target = t.target, task = t.task) |