diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-28 07:08:01 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-28 07:08:01 +0000 |
commit | 45af316b1f9743a08b4ed1d99ba92c65f6d6ef4f (patch) | |
tree | 153ab3ec1303f6a73ab6a1a9f9fba929dbdec6e1 | |
parent | 00e59553ad14c2a303e3ede32bb4af848baac4d1 (diff) | |
download | portage-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__.py | 5 |
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: |