diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-05-19 20:41:58 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-05-19 20:41:58 +0000 |
| commit | f1e89b2bb9f7d2677cd589f808df9594987fb1e0 (patch) | |
| tree | ab835e90e7557d66aebd07d3a2d6d967843175e3 /bitbake/lib/bb/cooker.py | |
| parent | 4bf7ed5458d05f3d124eb00c2bfcd3c61877bdd1 (diff) | |
| download | poky-f1e89b2bb9f7d2677cd589f808df9594987fb1e0.tar.gz | |
bitbake: Sync with upstream
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4504 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 619791f174..8e6acb19fc 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -509,8 +509,11 @@ class BBCooker: | |||
| 509 | try: | 509 | try: |
| 510 | failures = rq.execute_runqueue() | 510 | failures = rq.execute_runqueue() |
| 511 | except runqueue.TaskFailure, fnids: | 511 | except runqueue.TaskFailure, fnids: |
| 512 | failures = 0 | ||
| 512 | for fnid in fnids: | 513 | for fnid in fnids: |
| 513 | bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid]) | 514 | bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid]) |
| 515 | failures = failures + 1 | ||
| 516 | bb.event.fire(bb.event.BuildCompleted(buildname, [item], self.configuration.event_data, failures)) | ||
| 514 | return False | 517 | return False |
| 515 | bb.event.fire(bb.event.BuildCompleted(buildname, [item], self.configuration.event_data, failures)) | 518 | bb.event.fire(bb.event.BuildCompleted(buildname, [item], self.configuration.event_data, failures)) |
| 516 | return True | 519 | return True |
| @@ -543,8 +546,11 @@ class BBCooker: | |||
| 543 | try: | 546 | try: |
| 544 | failures = rq.execute_runqueue() | 547 | failures = rq.execute_runqueue() |
| 545 | except runqueue.TaskFailure, fnids: | 548 | except runqueue.TaskFailure, fnids: |
| 549 | failures = 0 | ||
| 546 | for fnid in fnids: | 550 | for fnid in fnids: |
| 547 | bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid]) | 551 | bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid]) |
| 552 | failures = failures + 1 | ||
| 553 | bb.event.fire(bb.event.BuildCompleted(buildname, targets, self.configuration.event_data, failures)) | ||
| 548 | sys.exit(1) | 554 | sys.exit(1) |
| 549 | bb.event.fire(bb.event.BuildCompleted(buildname, targets, self.configuration.event_data, failures)) | 555 | bb.event.fire(bb.event.BuildCompleted(buildname, targets, self.configuration.event_data, failures)) |
| 550 | 556 | ||
