diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-14 15:22:53 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-07-14 15:22:53 (GMT) |
commit | 4fcab606745312caa3d9c0c1d67fee0b365ecae9 (patch) | |
tree | f8b2cc76b2340bbfb86fec3947a8e6696cf46155 | |
parent | 2a884e354a933b1297f6e7c8956bb9b9bf50b8b7 (diff) |
Don't print double-faults.
/trunk/scripts/functions | 3 3 0 0 +++
1 file changed, 3 insertions(+)
-rw-r--r-- | scripts/functions | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index a960f70..bfacf94 100644 --- a/scripts/functions +++ b/scripts/functions @@ -3,8 +3,11 @@ # Licensed under the GPL v2. See COPYING in the root of this package # Prepare the fault handler +CT_IN_FAULT_HANDLER=0 CT_OnError() { ret=$? + [ ${CT_IN_FAULT_HANDLER} -ne 0 ] && return 0 + CT_IN_FAULT_HANDLER=1 CT_DoLog ERROR "Build failed in step '${CT_STEP_MESSAGE[${CT_STEP_COUNT}]}'" for((step=(CT_STEP_COUNT-1); step>1; step--)); do CT_DoLog ERROR " called in step '${CT_STEP_MESSAGE[${step}]}'" |