summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-08 11:24:31 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-08 11:24:31 +0000
commit07103829a1bf0d6faed52a5ac3bf7130967e3726 (patch)
tree5b70d29241edca4e112cab7cda5141ee7e8da3cf /bin/isolated-functions.sh
parent2e5c28ed64b7e870bc2d0799efcf786e2577fdc3 (diff)
downloadportage-07103829a1bf0d6faed52a5ac3bf7130967e3726.tar.gz
portage-07103829a1bf0d6faed52a5ac3bf7130967e3726.tar.bz2
portage-07103829a1bf0d6faed52a5ac3bf7130967e3726.zip
Implement eapi$EAPI_* default phase functions that are equivalent to the
default_* functions for the given EAPI. For example, a function named eapi0_src_compile provides access to the default src_compile implementation that EAPI 0 provides. This feature is supported only when EAPI=2_pre2 is set. Thanks to Brian Harring for suggesting this idea. svn path=/main/trunk/; revision=11350
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 378e03f91..85a478e6b 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -546,7 +546,7 @@ save_ebuild_env() {
for x in pkg_setup pkg_nofetch src_unpack src_configure \
src_compile src_test src_install pkg_preinst pkg_postinst \
pkg_prerm pkg_postrm ; do
- unset -f {,_}default_$x
+ unset -f {,_}default_$x {,_}eapi{0,1,2,2_pre1,2_pre2}_$x
done
unset x