Add dummy dosed and dohard functions for EAPI 3, so that a trace can be
authorZac Medico <zmedico@gentoo.org>
Fri, 24 Apr 2009 02:29:44 +0000 (02:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 24 Apr 2009 02:29:44 +0000 (02:29 -0000)
displayed (not possible with the helper binaries).

svn path=/main/trunk/; revision=13390

bin/ebuild.sh
bin/isolated-functions.sh

index 9cbd748e6743a731cfeebc93254c80c16f0d9b69..43d428ed722686e8aede00594831bc7edaa1b8fd 100755 (executable)
@@ -1444,6 +1444,14 @@ _ebuild_phase_funcs() {
                        eval "$x() { _eapi0_$x \"\$@\" ; }"
        done
 
+       if ! hasq $eapi 0 1 2 ; then
+               for x in dosed dohard ; do
+                       eval "$x() {
+                               die \"$x has been banned for EAPI '$eapi'\"
+                       }"
+               done
+       fi
+
        case $eapi in
 
                0|1)
index ccef19ed222e73834330654b19a534401f759fd9..7996268d7b8372c51fe91505999dbc280ab31c75 100755 (executable)
@@ -498,7 +498,8 @@ save_ebuild_env() {
                done
                unset x
 
-               unset -f dump_trace die diefunc quiet_mode vecho elog_base eqawarn elog \
+               unset -f die diefunc dosed dohard dump_trace \
+                       quiet_mode vecho elog_base eqawarn elog \
                        esyslog einfo einfon ewarn eerror ebegin _eend eend KV_major \
                        KV_minor KV_micro KV_to_int get_KV unset_colors set_colors has \
                        hasg hasgq hasv hasq qa_source qa_call \