diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-18 15:47:42 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-18 15:47:42 +0000 |
commit | c5422f79e211247c07db3d52ad373e8c40d287f5 (patch) | |
tree | 7d4aaae3e1cb82510a980bd5a91f5da4c034a111 /bin/bitbake | |
parent | 712fe375531520eea9b68d24f49fbe9598e3c562 (diff) | |
download | bitbake-c5422f79e211247c07db3d52ad373e8c40d287f5.tar.gz |
runqueue.py: Change failed tasks handling so all failed tasks are reported, not just the first. Also add signal handling so Ctrl+C only interrupts the main tasks upon the first keypress, the second keypress sends SIGTERM to all children
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-x | bin/bitbake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/bitbake b/bin/bitbake index 403f7b8ad..253ee09ef 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -643,10 +643,10 @@ class BBCooker: rq.prepare_runqueue(self.configuration.data, self.status, taskdata, runlist) try: failures = rq.execute_runqueue(self, self.configuration.data, self.status, taskdata, runlist) - except runqueue.TaskFailure, (fnid, fn, taskname): - bb.msg.error(bb.msg.domain.Build, "'%s, %s' failed" % (fn, taskname)) + except runqueue.TaskFailure, fnids: + for fnid in fnids: + bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid]) sys.exit(1) - bb.event.fire(bb.event.BuildCompleted(buildname, pkgs_to_build, self.configuration.event_data, failures)) sys.exit( self.stats.show() ) |