diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-05 02:46:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-05 02:46:25 +0000 |
commit | c88960470151c8737595b838acefdedc8be2ac2a (patch) | |
tree | f9b10cc5c6cb5506e33ac04582ac5b1e287bdd96 /pym/portage.py | |
parent | 39e7dcfe81e6ee0b740ca48da12eced4a025b5d8 (diff) | |
download | portage-c88960470151c8737595b838acefdedc8be2ac2a.tar.gz portage-c88960470151c8737595b838acefdedc8be2ac2a.tar.bz2 portage-c88960470151c8737595b838acefdedc8be2ac2a.zip |
Bump EAPI from 0 to 1 and fix eapi_is_supported() so that
it works properly with both 0 and 1. (trunk r7909)
svn path=/main/branches/2.1.2/; revision=7932
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index b74f4d2c8..eafefbe6b 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3277,7 +3277,13 @@ def spawnebuild(mydo,actionmap,mysettings,debug,alwaysdep=0,logfile=None): def eapi_is_supported(eapi): - return str(eapi).strip() == str(portage_const.EAPI).strip() + try: + eapi = int(str(eapi).strip()) + except ValueError: + eapi = -1 + if eapi < 0: + return False + return eapi <= portage_const.EAPI def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, mydbapi): |