summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/build.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 5479a53..94f9cb3 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -318,6 +318,7 @@ bb_sh_exit_handler() {
318 318
319bb_bash_exit_handler() { 319bb_bash_exit_handler() {
320 ret=$? 320 ret=$?
321 { set +x; } > /dev/null
321 trap "" DEBUG 322 trap "" DEBUG
322 if [ "$ret" != 0 ]; then 323 if [ "$ret" != 0 ]; then
323 echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'" 324 echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'"
@@ -353,8 +354,8 @@ case $BASH_VERSION in
353 set -e 354 set -e
354 ;; 355 ;;
355*) trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0 356*) trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0
356 trap 'bb_bash_debug_handler' DEBUG 357 trap '{ bb_bash_debug_handler; } 2>/dev/null' DEBUG
357 set -eE 358 set -e
358 shopt -s extdebug 359 shopt -s extdebug
359 ;; 360 ;;
360esac 361esac