diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-05 15:04:06 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-16 12:31:19 +0100 |
commit | 90db9f30749b3f93a6c7d503af544ee8e0ca1728 (patch) | |
tree | c287031745acc56a2753eb867c1a0bb773393659 /bitbake/lib/bb/runqueue.py | |
parent | 2fa0c30375586a61193f3ee1dea308fbc0fd5eb1 (diff) | |
download | openembedded-core-90db9f30749b3f93a6c7d503af544ee8e0ca1728.tar.gz openembedded-core-90db9f30749b3f93a6c7d503af544ee8e0ca1728.tar.bz2 openembedded-core-90db9f30749b3f93a6c7d503af544ee8e0ca1728.zip |
bitbake: Remove two layers of unnecessary functions from task execution
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index a4aea6c004..afbc16a9f0 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -979,8 +979,18 @@ class RunQueue: bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) try: - self.cooker.tryBuild(fn, taskname[3:]) - except bb.build.EventException: + the_data = self.cooker.bb_cache.loadDataFull(fn, self.cooker.configuration.data) + + if not self.cooker.configuration.dry_run: + bb.build.exec_task(taskname, the_data) + os._exit(0) + + except bb.build.FuncFailed: + bb.msg.error(bb.msg.domain.Build, "task stack execution failed") + os._exit(1) + except bb.build.EventException as e: + event = e.args[1] + bb.msg.error(bb.msg.domain.Build, "%s event exception, aborting" % bb.event.getName(event)) os._exit(1) except Exception: from traceback import format_exc |