doebuild_environment: move EAPI code later
authorZac Medico <zmedico@gentoo.org>
Tue, 24 May 2011 03:02:30 +0000 (20:02 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 24 May 2011 03:02:30 +0000 (20:02 -0700)
commit2610641d07aa6af21c132d438995838c516a67f2
tree39a27f69627c97fc733b5e8ac802869b56f78600
parente451e90b148e58bc026b3a70f1c47f3c57ca4839
doebuild_environment: move EAPI code later

All EAPI dependent code comes last, so that essential
variables like PORTAGE_BUILDDIR are still initialized even in
cases when UnsupportedAPIException needs to be raised, which
can be useful when uninstalling a package that has corrupt
EAPI metadata.
pym/portage/package/ebuild/doebuild.py