summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-09 01:34:18 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-09 01:34:18 +0000
commit54d6123945222c4f77b07904475e223928972d9b (patch)
tree794e7ccbda3526a1667297f40e1f92685edae112
parentf405e906e88d6c8f0d07fe60db0dae2c91e69aeb (diff)
downloadportage-54d6123945222c4f77b07904475e223928972d9b.tar.gz
portage-54d6123945222c4f77b07904475e223928972d9b.tar.bz2
portage-54d6123945222c4f77b07904475e223928972d9b.zip
Zac pointed out that the retcodes would be wrong if stuff failed...Yeah...
svn path=/main/trunk/; revision=5489
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 2dfe9e4a8..c1b9bebca 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -25,7 +25,7 @@ declare -rx EBUILD_PHASE
qa_source() {
local shopts=$(shopt) OLDIFS="$IFS"
- source "$@"
+ source "$@" || return 1
[[ $shopts != $(shopt) ]] &&
vecho "QA Notice: Global shell options were changed and not restored while sourcing $1"
[[ "$IFS" != "$OLDIFS" ]] &&
@@ -35,7 +35,7 @@ qa_source() {
qa_call() {
local shopts=$(shopt) OLDIFS="$IFS"
- "$@"
+ "$@" || return 1
[[ $shopts != $(shopt) ]] &&
vecho "QA Notice: Global shell options were changed while calling $1"
[[ "$IFS" != "$OLDIFS" ]] &&