diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-09-29 15:35:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-30 13:39:49 +0000 |
commit | 4f1390cd2376eb50834ff0decb4abc5b101f8c2e (patch) | |
tree | bb3d0310a509f8d46ad9d087edf75a6b5d03bad7 /bitbake/lib/bb | |
parent | 14e5b273242c5ce46595f5d85c5eeff811864636 (diff) | |
download | poky-4f1390cd2376eb50834ff0decb4abc5b101f8c2e.tar.gz |
bitbake: toasterui: save build id in build request on first chance
We change the saving of the build id to the build request as
soon is the build is created, as to allow for a consistent
display of build data while build is in progress.
(Bitbake rev: 9504ca6a69ba6da21f88b3cc77fa5910d886b6c3)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index a0a2d80ffa..1f66595887 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -69,6 +69,8 @@ class ORMWrapper(object): | |||
69 | from bldcontrol.models import BuildEnvironment, BuildRequest | 69 | from bldcontrol.models import BuildEnvironment, BuildRequest |
70 | br, be = brbe.split(":") | 70 | br, be = brbe.split(":") |
71 | buildrequest = BuildRequest.objects.get(pk = br) | 71 | buildrequest = BuildRequest.objects.get(pk = br) |
72 | buildrequest.build = build | ||
73 | buildrequest.save() | ||
72 | build.project_id = buildrequest.project_id | 74 | build.project_id = buildrequest.project_id |
73 | build.save() | 75 | build.save() |
74 | 76 | ||
@@ -939,7 +941,6 @@ class BuildInfoHelper(object): | |||
939 | be.save() | 941 | be.save() |
940 | br = BuildRequest.objects.get(pk = br_id) | 942 | br = BuildRequest.objects.get(pk = br_id) |
941 | br.state = BuildRequest.REQ_COMPLETED | 943 | br.state = BuildRequest.REQ_COMPLETED |
942 | br.build = self.internal_state['build'] | ||
943 | br.save() | 944 | br.save() |
944 | 945 | ||
945 | 946 | ||