From 45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 28 Jul 2008 07:08:01 +0000 Subject: [PATCH] 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 --- pym/portage/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.26.2