aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/localhostbecontroller.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 2215d7af24b..0c2dede4844 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -290,12 +290,17 @@ class LocalhostBEController(BuildEnvironmentController):
# get the bb server running with the build req id and build env id
bbctrl = self.getBBController()
- # set variables
+ # set variables; TOASTER_BRBE is not set on the server, as this
+ # causes events from command-line builds to be attached to the last
+ # Toaster-triggered build; instead, TOASTER_BRBE is fired as an event so
+ # that toasterui can set it on the buildinfohelper;
+ # see https://bugzilla.yoctoproject.org/show_bug.cgi?id=9021
for var in variables:
- bbctrl.setVariable(var.name, var.value)
if var.name == 'TOASTER_BRBE':
bbctrl.triggerEvent('bb.event.MetadataEvent("SetBRBE", "%s")' \
% var.value)
+ else:
+ bbctrl.setVariable(var.name, var.value)
# Add 'toaster' and 'buildhistory' to INHERIT variable
inherit = {item.strip() for item in bbctrl.getVariable('INHERIT').split()}