diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-08-08 15:11:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-11 00:08:18 +0100 |
commit | a3112c922f036425977abffa0137b9133f61fcd6 (patch) | |
tree | b5467eca653eb74159ddef0b7c55e005f17c5c65 /lib/toaster/orm | |
parent | f855490dd04281beb5ae65d82430203d9fd263fc (diff) | |
download | bitbake-a3112c922f036425977abffa0137b9133f61fcd6.tar.gz |
toaster: bldcontrol model BRLayer Add corresponding local_source_dir
Sync the BRLayer object with the new field added to the Layer object.
The BRLayer (BuildRequest Layers) are snapshots of the layers in the
project at build time and therefore need to mirror the required fields
of the layer object.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Diffstat (limited to 'lib/toaster/orm')
-rw-r--r-- | lib/toaster/orm/models.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index 432b51e0e..3aeb4e223 100644 --- a/lib/toaster/orm/models.py +++ b/lib/toaster/orm/models.py @@ -346,7 +346,15 @@ class Project(models.Model): for l in self.projectlayer_set.all().order_by("pk"): commit = l.layercommit.get_vcs_reference() print("ii Building layer ", l.layercommit.layer.name, " at vcs point ", commit) - 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) + 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, + local_source_dir=l.layercommit.layer.local_source_dir + ) br.state = BuildRequest.REQ_QUEUED now = timezone.now() |