From: Alec Warner Date: Mon, 8 Jan 2007 23:47:44 +0000 (-0000) Subject: Antarus sucks at bash, thanks for Genone for reporting this major bug. X-Git-Tag: v2.1.2~142 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=64715f30c51de3df872ead203eadae78409d1f90;p=portage.git Antarus sucks at bash, thanks for Genone for reporting this major bug. svn path=/main/trunk/; revision=5485 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 88253dc54..1a9381682 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -21,7 +21,7 @@ declare -rx EBUILD_PHASE # These two functions wrap sourcing and calling respectively. At present they # perform a qa check to make sure eclasses and ebuilds and profiles don't mess # with shell opts (shopts). Ebuilds/eclasses changing shopts should reset them -# when they are done. +# when they are done. Note: For now these shoudl always return success. qa_source() { local shopts=$(shopt) OLDIFS="$IFS" @@ -30,6 +30,7 @@ qa_source() { vecho "QA Notice: Global shell options were changed and not restored while sourcing $1" [[ "$IFS" != "$OLDIFS" ]] && vecho "QA Notice: IFS was changed and not reset while sourcing $1" + return 0 } qa_call() { @@ -39,6 +40,7 @@ qa_call() { vecho "QA Notice: Global shell options were changed while calling $1" [[ "$IFS" != "$OLDIFS" ]] && vecho "QA Notice: IFS was changed and not reset while calling $1" + return 0 } if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ]; then