diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-11 06:37:00 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-11 06:37:00 +0000 |
commit | fa00a4fde95796c62b2394c608bab838d3cdb392 (patch) | |
tree | 22187f2a61cca9a674d69f729a97313a73d1f8e1 /pym | |
parent | 7aa1ce0f3b907334a826791fc2ee9b266a2f5127 (diff) | |
download | portage-fa00a4fde95796c62b2394c608bab838d3cdb392.tar.gz portage-fa00a4fde95796c62b2394c608bab838d3cdb392.tar.bz2 portage-fa00a4fde95796c62b2394c608bab838d3cdb392.zip |
Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled.
svn path=/main/trunk/; revision=15035
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/__init__.py | 6 | ||||
-rw-r--r-- | pym/repoman/checks.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index a0d75e730..965911139 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3777,7 +3777,7 @@ class config(object): mydict["USE"] = self.get("PORTAGE_USE", "") # Don't export AA to the ebuild environment in EAPIs that forbid it - if eapi not in ("0", "1", "2", "3"): + if eapi not in ("0", "1", "2", "3", "3_pre2"): mydict.pop("AA", None) # Prefix variables are supported starting with EAPI 3. @@ -5649,7 +5649,7 @@ def spawnebuild(mydo, actionmap, mysettings, debug, alwaysdep=0, if mydo == "prepare" and eapi in ("0", "1"): return os.EX_OK - if mydo == "pretend" and eapi in ("0", "1", "2", "3"): + if mydo == "pretend" and eapi in ("0", "1", "2", "3", "3_pre2"): return os.EX_OK kwargs = actionmap[mydo]["args"] @@ -6304,7 +6304,7 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m mysettings["PORTAGE_BUILDDIR"], ".exit_status") #set up KV variable -- DEP SPEEDUP :: Don't waste time. Keep var persistent. - if eapi not in ('0', '1', '2', '3'): + if eapi not in ('0', '1', '2', '3', '3_pre2'): # Discard KV for EAPIs that don't support it. Cache KV is restored # from the backupenv whenever config.reset() is called. mysettings.pop('KV', None) diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index ce72e36ea..3156894f6 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -436,7 +436,7 @@ class Eapi4IncompatibleFuncs(LineCheck): self.eapi = pkg.metadata['EAPI'] def check_eapi(self, eapi): - return self.eapi not in ('0', '1', '2', '3') + return self.eapi not in ('0', '1', '2', '3', '3_pre2') def check(self, num, line): m = self.banned_commands_re.match(line) @@ -453,7 +453,7 @@ class Eapi4GoneVars(LineCheck): self.eapi = pkg.metadata['EAPI'] def check_eapi(self, eapi): - return self.eapi not in ('0', '1', '2', '3') + return self.eapi not in ('0', '1', '2', '3', '3_pre2') def check(self, num, line): m = self.undefined_vars_re.match(line) |