summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/porttree.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 83c568fa0..2c205ae9e 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -371,13 +371,20 @@ class portdbapi(dbapi):
if mysettings is None:
mysettings = self.mysettings
try:
- myuris = self.aux_get(mypkg, ["SRC_URI"], mytree=mytree)[0]
+ eapi, myuris = self.aux_get(mypkg,
+ ["EAPI", "SRC_URI"], mytree=mytree)
except KeyError:
# Convert this to an InvalidDependString exception since callers
# already handle it.
raise portage.exception.InvalidDependString(
"getfetchlist(): aux_get() error reading "+mypkg+"; aborting.")
+ if not eapi_is_supported(eapi):
+ # Convert this to an InvalidDependString exception
+ # since callers already handle it.
+ raise portage.exception.InvalidDependString(
+ "getfetchlist(): Unsupported EAPI: '%s'" % eapi.lstrip("-"))
+
if useflags is None:
useflags = mysettings["USE"].split()