in some cases, instead of a nonsense ValueError.
svn path=/main/trunk/; revision=10393
"missing right parenthesis: '%s'" % mystr)
elif has_left_paren and left_paren < right_paren:
freesec,subsec = mystr.split("(",1)
- subsec,tail = paren_reduce(subsec,tokenize)
+ sublist = paren_reduce(subsec, tokenize=tokenize)
+ if len(sublist) != 2:
+ raise portage.exception.InvalidDependString(
+ "malformed syntax: '%s'" % mystr)
+ subsec, tail = sublist
else:
subsec,tail = mystr.split(")",1)
if tokenize: