summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/porttree.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/dbapi/porttree.py')
-rw-r--r--pym/portage/dbapi/porttree.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index feade6fc8..95455182c 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -63,6 +63,11 @@ def _src_uri_validate(cpv, eapi, src_uri):
"supported with EAPI='%s'") % (cpv, eapi))
operator = x
continue
+ if operator is not None:
+ if "/" in x:
+ raise portage.exception.InvalidDependString(
+ ("getFetchMap(): '%s' SRC_URI '/' character in " + \
+ "file name: '%s'") % (cpv, x))
uri = None
operator = None
@@ -548,11 +553,6 @@ class portdbapi(dbapi):
if myuris:
continue
if token == "->":
- if eapi in ("0", "1"):
- raise portage.exception.InvalidDependString(
- ("getFetchMap(): '%s' SRC_URI arrows are not " + \
- "supported with EAPI='%s'") % (mypkg, eapi))
-
operator = token
continue
if operator is None:
@@ -563,10 +563,7 @@ class portdbapi(dbapi):
"name: '%s'") % (mypkg, uri))
else:
distfile = token
- if "/" in distfile:
- raise portage.exception.InvalidDependString(
- ("getFetchMap(): '%s' SRC_URI '/' character in " + \
- "file name: '%s'") % (mypkg, distfile))
+
uri_set = uri_map.get(distfile)
if uri_set is None:
uri_set = set()