From: Zac Medico Date: Sat, 24 Nov 2007 22:26:41 +0000 (-0000) Subject: Bug #200238 - Make ebuild.sh properly bail out when the pkg_info() X-Git-Tag: v2.1.4~220 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37169b5033f66181850e0681703b388b037e90a2;p=portage.git Bug #200238 - Make ebuild.sh properly bail out when the pkg_info() function doesn't exist. (trunk r8647) svn path=/main/branches/2.1.2/; revision=8648 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index d5b770dd8..bd01b4750 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -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