diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-08 07:24:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-08 07:24:12 +0000 |
commit | ac0a630b42c12b5f0d3088d4f4c45186c82d3d57 (patch) | |
tree | ebb2ffb6ef381be03274813a702475176c81a39e /bin | |
parent | 41ccdc0ab3efce184ab6d7a0f49a490c8fda21f9 (diff) | |
download | portage-ac0a630b42c12b5f0d3088d4f4c45186c82d3d57.tar.gz portage-ac0a630b42c12b5f0d3088d4f4c45186c82d3d57.tar.bz2 portage-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-x | bin/ebuild.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index ffe904e9c..b7636b1e3 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} |