diff options
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: | |||
| 979 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) | 979 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data) |
| 980 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) | 980 | bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data) |
| 981 | try: | 981 | try: |
| 982 | self.cooker.tryBuild(fn, taskname[3:]) | 982 | the_data = self.cooker.bb_cache.loadDataFull(fn, self.cooker.configuration.data) |
| 983 | except bb.build.EventException: | 983 | |
| 984 | if not self.cooker.configuration.dry_run: | ||
| 985 | bb.build.exec_task(taskname, the_data) | ||
| 986 | os._exit(0) | ||
| 987 | |||
| 988 | except bb.build.FuncFailed: | ||
| 989 | bb.msg.error(bb.msg.domain.Build, "task stack execution failed") | ||
| 990 | os._exit(1) | ||
| 991 | except bb.build.EventException as e: | ||
| 992 | event = e.args[1] | ||
| 993 | bb.msg.error(bb.msg.domain.Build, "%s event exception, aborting" % bb.event.getName(event)) | ||
| 984 | os._exit(1) | 994 | os._exit(1) |
| 985 | except Exception: | 995 | except Exception: |
| 986 | from traceback import format_exc | 996 | from traceback import format_exc |
