uri = None
_src_uri_validate(cpv, eapi, x)
continue
- if x[:-1] == "?":
+ if x[-1:] == "?":
if operator is not None:
raise portage.exception.InvalidDependString(
("getFetchMap(): '%s' SRC_URI arrow missing " + \
raise portage.exception.InvalidDependString(
("getFetchMap(): '%s' SRC_URI '/' character in " + \
"file name: '%s'") % (cpv, x))
- if x[-1] == "?":
+ if x[-1:] == "?":
raise portage.exception.InvalidDependString(
("getFetchMap(): '%s' SRC_URI arrow missing " + \
"right operand") % (cpv,))
( "2", "http://foo/bar blah.tbz2 ->" , False ),
( "2", "-> http://foo/bar blah.tbz2 )" , False ),
( "2", "http://foo/bar ->" , False ),
+ ( "2", "http://foo/bar -> foo? ( http://foo.com/foo )" , False ),
( "2", "foo? ( http://foo/bar -> ) blah.tbz2" , False ),
( "2", "http://foo/bar -> foo/blah.tbz2" , False ),
( "2", "http://foo.com/foo http://foo/bar -> blah.tbz2" , True ),