diff options
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index c93ee94d2c..22469607d6 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -1524,9 +1524,7 @@ class BuildInfoHelper(object): | |||
1524 | return | 1524 | return |
1525 | 1525 | ||
1526 | br_id, be_id = self.brbe.split(":") | 1526 | br_id, be_id = self.brbe.split(":") |
1527 | be = BuildEnvironment.objects.get(pk = be_id) | 1527 | |
1528 | be.lock = BuildEnvironment.LOCK_LOCK | ||
1529 | be.save() | ||
1530 | br = BuildRequest.objects.get(pk = br_id) | 1528 | br = BuildRequest.objects.get(pk = br_id) |
1531 | 1529 | ||
1532 | # if we're 'done' because we got cancelled update the build outcome | 1530 | # if we're 'done' because we got cancelled update the build outcome |
@@ -1543,6 +1541,10 @@ class BuildInfoHelper(object): | |||
1543 | else: | 1541 | else: |
1544 | br.state = BuildRequest.REQ_FAILED | 1542 | br.state = BuildRequest.REQ_FAILED |
1545 | br.save() | 1543 | br.save() |
1544 | |||
1545 | be = BuildEnvironment.objects.get(pk = be_id) | ||
1546 | be.lock = BuildEnvironment.LOCK_FREE | ||
1547 | be.save() | ||
1546 | signal_runbuilds() | 1548 | signal_runbuilds() |
1547 | 1549 | ||
1548 | def store_log_error(self, text): | 1550 | def store_log_error(self, text): |