summaryrefslogtreecommitdiffstats
path: root/bitbake-dev/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-11-07 14:45:55 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-11-07 14:45:55 +0000
commit4f5bb4683d35df0789a459e94ce4e04004e48b71 (patch)
treea938bc0edb375d6d3b1d5b01393851cdb310edf1 /bitbake-dev/lib
parent6d7f3cbcb7167a472bc7a982b600bdfb58f8057f (diff)
downloadpoky-4f5bb4683d35df0789a459e94ce4e04004e48b71.tar.gz
bitbake-dev: Fix python function task execution failure handling
Diffstat (limited to 'bitbake-dev/lib')
-rw-r--r--bitbake-dev/lib/bb/build.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake-dev/lib/bb/build.py b/bitbake-dev/lib/bb/build.py
index b8abe6d1b4..7974a8248d 100644
--- a/bitbake-dev/lib/bb/build.py
+++ b/bitbake-dev/lib/bb/build.py
@@ -204,8 +204,11 @@ def exec_func_python(func, d, runfile, logfile):
204 g['bb'] = bb 204 g['bb'] = bb
205 g['os'] = os 205 g['os'] = os
206 g['d'] = d 206 g['d'] = d
207 utils.better_exec(comp, g, tmp, bbfile) 207 try:
208 208 utils.better_exec(comp, g, tmp, bbfile)
209 except:
210 bb.msg.error(bb.msg.domain.Build, "Function %s failed" % func)
211 raise FuncFailed("function %s failed" % func, logfile)
209 212
210def exec_func_shell(func, d, runfile, logfile, flags): 213def exec_func_shell(func, d, runfile, logfile, flags):
211 """Execute a shell BB 'function' Returns true if execution was successful. 214 """Execute a shell BB 'function' Returns true if execution was successful.