ebuild.sh: export EAPI for helpers v2.2.0_alpha109
authorZac Medico <zmedico@gentoo.org>
Sat, 2 Jun 2012 06:45:18 +0000 (23:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 2 Jun 2012 06:45:18 +0000 (23:45 -0700)
This fixes some cases where it wouldn't be exported since commit
20817801dd4ef0117bcc7b33c90650da1e920385.

bin/ebuild.sh

index 25891137c3e00b34f784324365f6d9e618e85795..9829f68b3bb24a43314d33d3b2542f7ffbb5e27e 100755 (executable)
@@ -553,6 +553,9 @@ if ! has "$EBUILD_PHASE" clean cleanrm ; then
 
                [ "${EAPI+set}" = set ] || EAPI=0
 
+               # export EAPI for helpers (especially since we unset it above)
+               export EAPI
+
                if has "$EAPI" 0 1 2 3 3_pre2 ; then
                        export RDEPEND=${RDEPEND-${DEPEND}}
                        debug-print "RDEPEND: not set... Setting to: ${DEPEND}"