Zac pointed out that the retcodes would be wrong if stuff failed...Yeah...
authorAlec Warner <antarus@gentoo.org>
Tue, 9 Jan 2007 01:34:18 +0000 (01:34 -0000)
committerAlec Warner <antarus@gentoo.org>
Tue, 9 Jan 2007 01:34:18 +0000 (01:34 -0000)
svn path=/main/trunk/; revision=5489

bin/ebuild.sh

index 2dfe9e4a81e0abc8d60a6cac266ad1774d5273d1..c1b9bebcae36f2b8a4c2ba121bcaa9f6387ad987 100755 (executable)
@@ -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" ]] &&