From: Zac Medico Date: Mon, 28 Jul 2008 07:08:01 +0000 (-0000) Subject: Add support for an new EAPI="2_pre0" value so that people who want to test X-Git-Tag: v2.2_rc4~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f;p=portage.git Add support for an new EAPI="2_pre0" value so that people who want to test 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 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index f17b8e8a6..34da6c22a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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: