summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 1e2c9ceeb..f73d0cbb6 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -5428,6 +5428,8 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
else:
mysettings["KV"]=""
mysettings.backup_changes("KV")
+ elif eapi not in ("0", "1", "2"):
+ mysettings.pop("KV", None)
# Allow color.map to control colors associated with einfo, ewarn, etc...
mycolors = []