diff options
-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: |