Bug #200238 - Make ebuild.sh properly bail out when the pkg_info()
authorZac Medico <zmedico@gentoo.org>
Sat, 24 Nov 2007 22:25:45 +0000 (22:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 24 Nov 2007 22:25:45 +0000 (22:25 -0000)
function doesn't exist.

svn path=/main/trunk/; revision=8647

bin/ebuild.sh

index d5b770dd8f26c7c4ccb3657ec5033fc5d03ee903..bd01b47500b2bdacef6aa30078eed714610dce1f 100755 (executable)
@@ -1733,7 +1733,7 @@ if [ -n "${EBUILD_SH_ARGS}" ] ; then
                if [ "${EBUILD_SH_ARGS}" == "info" ] && \
                        [ "$(type -t pkg_${EBUILD_SH_ARGS})" != "function" ]; then
                        ewarn  "pkg_${EBUILD_SH_ARGS}() is not defined: '${EBUILD##*/}'"
-                       continue
+                       exit 0
                fi
                export SANDBOX_ON="0"
                if [ "${PORTAGE_DEBUG}" != "1" ] || [ "${-/x/}" != "$-" ]; then