uri = None
_src_uri_validate(cpv, eapi, x)
continue
+ if x == '||':
+ raise portage.exception.InvalidDependString(
+ ("getFetchMap(): '%s' SRC_URI contains invalid " + \
+ "|| operator") % (cpv,))
+
if x[-1:] == "?":
if operator is not None:
raise portage.exception.InvalidDependString(
tests = [
( "0", "http://foo/bar -> blah.tbz2" , False ),
( "1", "http://foo/bar -> blah.tbz2" , False ),
+ ( "2", "|| ( http://foo/bar -> blah.tbz2 )" , False ),
( "2", "http://foo/bar -> blah.tbz2" , True ),
( "2", "foo? ( http://foo/bar -> blah.tbz2 )" , True ),
( "2", "http://foo/bar -> foo? ( ftp://foo/a )" , False ),