From a70afbccafa38a013da34033fdca7d8561e2741a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 1 Apr 2009 17:04:11 +0000 Subject: [PATCH] Bug #264494 - In case the ebuild has enabled set -e during an ebuild phase, proactively call set +e inside qa_source(), qa_call(), and die(). svn path=/main/trunk/; revision=13273 --- bin/ebuild.sh | 2 ++ bin/isolated-functions.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 04cfe6369..d1e2e8fd0 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -35,6 +35,7 @@ qa_source() { local retval source "$@" retval=$? + set +e [[ $shopts != $(shopt) ]] && eqawarn "QA Notice: Global shell options changed and were not restored while sourcing '$*'" [[ "$IFS" != "$OLDIFS" ]] && @@ -47,6 +48,7 @@ qa_call() { local retval "$@" retval=$? + set +e [[ $shopts != $(shopt) ]] && eqawarn "QA Notice: Global shell options changed and were not restored while calling '$*'" [[ "$IFS" != "$OLDIFS" ]] && diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 8eab6e259..9abfc308a 100755 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -54,6 +54,7 @@ dump_trace() { } die() { + set +e if [ -n "${QA_INTERCEPTORS}" ] ; then # die was called from inside inherit. We need to clean up # QA_INTERCEPTORS since sed is called below. -- 2.26.2