summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-28 07:08:01 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-28 07:08:01 +0000
commit45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f (patch)
tree153ab3ec1303f6a73ab6a1a9f9fba929dbdec6e1
parent00e59553ad14c2a303e3ede32bb4af848baac4d1 (diff)
downloadportage-45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f.tar.gz
portage-45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f.tar.bz2
portage-45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f.zip
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
-rw-r--r--pym/portage/__init__.py5
1 files changed, 4 insertions, 1 deletions
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: