summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-08 07:24:12 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-08 07:24:12 +0000
commitac0a630b42c12b5f0d3088d4f4c45186c82d3d57 (patch)
treeebb2ffb6ef381be03274813a702475176c81a39e /bin
parentAdd color classes PROMPT_CHOICE_{DEFAULT,OTHER} for emerge's Yes/No prompt. (diff)
downloadportage-idfetch-ac0a630b42c12b5f0d3088d4f4c45186c82d3d57.tar.gz
portage-idfetch-ac0a630b42c12b5f0d3088d4f4c45186c82d3d57.tar.bz2
portage-idfetch-ac0a630b42c12b5f0d3088d4f4c45186c82d3d57.zip
For bug #184566, enable the emerge --info action to run an option pkg_info() function from each installed ebuild.
svn path=/main/trunk/; revision=7201
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index ffe904e9..b7636b1e 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1538,7 +1538,12 @@ for myarg in ${EBUILD_SH_ARGS} ; do
qa_call pkg_nofetch
exit 1
;;
- prerm|postrm|postinst|config)
+ prerm|postrm|postinst|config|info)
+ if [ "${myarg}" == "info" ] && \
+ [ "$(type -t pkg_${myarg})" != "function" ]; then
+ ewarn "pkg_${myarg}() is not defined: '${EBUILD##*/}'"
+ continue
+ fi
export SANDBOX_ON="0"
if [ "$PORTAGE_DEBUG" != "1" ]; then
[ "$(type -t pre_pkg_${myarg})" == "function" ] && qa_call pre_pkg_${myarg}