aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index 48a7c7bd9c4..2af4b73d81e 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -1272,8 +1272,13 @@ class BuildsTable(ToasterTable):
bbctrl = bbcontroller.BitbakeController(br.environment)
bbctrl.forceShutDown()
while True:
- if BuildRequest.objects.get(pk = i).build.outcome == 0:
+ import time
+ time.sleep(2)
+ build = BuildRequest.objects.get(pk = i).build
+ if build.outcome == 0:
br.state = BuildRequest.REQ_DELETED
+ build.outcome = 3
+ build.save()
br.save()
break
except BuildRequest.DoesNotExist: