Add support for an new EAPI="2_pre0" value so that people who want to test
authorZac Medico <zmedico@gentoo.org>
Mon, 28 Jul 2008 07:08:01 +0000 (07:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 28 Jul 2008 07:08:01 +0000 (07:08 -0000)
USE deps can set the EAPI to something other than 0 or 1. We can support as
many different experimental EAPI values as we need, and drop support for them
when the final EAPI 2 is defined.

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

pym/portage/__init__.py

index f17b8e8a6038772a3dcf1184c516215325f232c0..34da6c22a52dbe28bcf6a7027500e5c4c086db53 100644 (file)
@@ -4477,8 +4477,11 @@ def _spawn_misc_sh(mysettings, commands, **kwargs):
        return rval
 
 def eapi_is_supported(eapi):
+       eapi = str(eapi).strip()
+       if eapi == "2_pre0":
+               return True
        try:
-               eapi = int(str(eapi).strip())
+               eapi = int(eapi)
        except ValueError:
                eapi = -1
        if eapi < 0: