mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
bitbake: build: make shell traps less chatty when 'bitbake -v' is used
This shuts up both the DEBUG and EXIT handlers. Also, remove an unneeded "set -o errtrace" (i.e. set -E), since we no longer use an ERR trap. (Bitbake rev: 89e851fa0403d1e98aeed69990101e3f84f0b283) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d416bb3a68
commit
c67f57c09e
@@ -318,6 +318,7 @@ bb_sh_exit_handler() {
|
||||
|
||||
bb_bash_exit_handler() {
|
||||
ret=$?
|
||||
{ set +x; } > /dev/null
|
||||
trap "" DEBUG
|
||||
if [ "$ret" != 0 ]; then
|
||||
echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'"
|
||||
@@ -353,8 +354,8 @@ case $BASH_VERSION in
|
||||
set -e
|
||||
;;
|
||||
*) trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0
|
||||
trap 'bb_bash_debug_handler' DEBUG
|
||||
set -eE
|
||||
trap '{ bb_bash_debug_handler; } 2>/dev/null' DEBUG
|
||||
set -e
|
||||
shopt -s extdebug
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user