summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-04-06 17:46:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 23:10:30 +0100
commit860cba85cfb3047c8a2c9b3127a9b3f4441fd1a6 (patch)
tree6eede71e4463456165c9fc740ae8b5889223919f /bitbake
parentacb94078c4aa917417c3f77f9f92a7d6ffa068ff (diff)
downloadpoky-860cba85cfb3047c8a2c9b3127a9b3f4441fd1a6.tar.gz
bitbake: toasterui: update build in internal state
buildinfohelper stores current Build object in its internal state. Any changes to Build object will be lost if internal state is not updated as current buildinfohelper code saves Build object from internal state when build is completed. This bug causes incorrect build state when build is cancelled. Updating internal state should fix it. Note, that this commit updates internal state after status of the build is changed to Build.CANCELLED. There are several other places in the code where Build object is updated without updating internal state. They should be carefully analyzed and fixed. (Bitbake rev: d056cf40fc55530cb1736aedfb9a3c355884991e) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 9cb2c54067..1473a67222 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1420,6 +1420,7 @@ class BuildInfoHelper(object):
1420 logger.info("Build cancelled") 1420 logger.info("Build cancelled")
1421 br.build.outcome = Build.CANCELLED 1421 br.build.outcome = Build.CANCELLED
1422 br.build.save() 1422 br.build.save()
1423 self.internal_state['build'] = br.build
1423 errorcode = 0 1424 errorcode = 0
1424 1425
1425 if errorcode == 0: 1426 if errorcode == 0: