diff options
author | Chris Larson <clarson@kergoth.com> | 2003-06-26 04:56:49 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2003-06-26 04:56:49 +0000 |
commit | 2f8cab749ae8200b272d8fb761af095f75ff59be (patch) | |
tree | 0cdfee3b2e4baf76f803ec42e889a9636cacd517 /bin/oe/build.py | |
parent | 4e83f3a92e19f06d8683ec75fabe3bb433083464 (diff) | |
download | bitbake-contrib-2f8cab749ae8200b272d8fb761af095f75ff59be.tar.gz |
Minor status output formatting cleanups
Diffstat (limited to 'bin/oe/build.py')
-rw-r--r-- | bin/oe/build.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/oe/build.py b/bin/oe/build.py index 62b7bf287..695318ffa 100644 --- a/bin/oe/build.py +++ b/bin/oe/build.py @@ -143,8 +143,8 @@ def exec_func_shell(func, d): os.remove(logfile) return else: - error("'%s'() failed" % func); - error("more info in: %s" % logfile); + error("function %s failed" % func) + error("see log in %s" % logfile) raise FuncFailed() @@ -165,15 +165,18 @@ def exec_task(task, d): def execute(graph, item): func = data.getVar(item, _task_data) if func: - exec_func_shell(func, d) + event.fire(TaskStarted(func, d)) + try: + exec_func_shell(func, d) + except FuncFailed: + event.fire(TaskFailed(func, d)) + raise FuncFailed() + event.fire(TaskSucceeded(func, d)) # execute try: - event.fire(TaskStarted(task, d)) _task_graph.walkdown(task, execute) - event.fire(TaskSucceeded(task, d)) except FuncFailed: - event.fire(TaskFailed(task, d)) raise FuncFailed() # make stamp, or cause event and raise exception |