if t in [bb.parse.SkipPackage, bb.build.FuncFailed]:
raise
- bb.msg.error(bb.msg.domain.Build, "Function %s failed" % func)
- raise FuncFailed("function %s failed" % func, logfile)
+ raise FuncFailed("Function %s failed" % func, logfile)
def exec_func_shell(func, d, runfile, logfile, flags):
"""Execute a shell BB 'function' Returns true if execution was successful.
f.close()
os.chmod(runfile, 0775)
if not func:
- bb.msg.error(bb.msg.domain.Build, "Function not specified")
raise FuncFailed("Function not specified for exec_func_shell")
# execute function
if ret == 0:
return
- bb.msg.error(bb.msg.domain.Build, "Function %s failed" % func)
raise FuncFailed("function %s failed" % func, logfile)