From 4f1390cd2376eb50834ff0decb4abc5b101f8c2e Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Mon, 29 Sep 2014 15:35:59 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/buildinfohelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb') 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): from bldcontrol.models import BuildEnvironment, BuildRequest br, be = brbe.split(":") buildrequest = BuildRequest.objects.get(pk = br) + buildrequest.build = build + buildrequest.save() build.project_id = buildrequest.project_id build.save() @@ -939,7 +941,6 @@ class BuildInfoHelper(object): be.save() br = BuildRequest.objects.get(pk = br_id) br.state = BuildRequest.REQ_COMPLETED - br.build = self.internal_state['build'] br.save() -- cgit v1.2.3-54-g00ecf