diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-08 07:28:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-08 07:28:02 +0000 |
commit | c807e23b6c323ca59d7f3d249251aaff9bac3fdd (patch) | |
tree | ab8292207e746f2994122da30dd057f06879c74f /bin/ebuild.sh | |
parent | f28dcc2c7e417c90264fca7b611d4cb62b4dd909 (diff) | |
download | portage-c807e23b6c323ca59d7f3d249251aaff9bac3fdd.tar.gz portage-c807e23b6c323ca59d7f3d249251aaff9bac3fdd.tar.bz2 portage-c807e23b6c323ca59d7f3d249251aaff9bac3fdd.zip |
For bug #184566, enable the emerge --info action to run an option pkg_info() function from each installed ebuild. (trunk r7201)
svn path=/main/branches/2.1.2/; revision=7202
Diffstat (limited to 'bin/ebuild.sh')
-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 117268230..cc09080bd 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1616,7 +1616,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} |