From: Jason Stubbs Date: Wed, 21 Dec 2005 14:46:37 +0000 (-0000) Subject: Fix an incorrect positional check in *DEPEND parsing. X-Git-Tag: v2.1_pre2~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=27d129da700aca1be8a8bf7fa26276169486dbf1;p=portage.git Fix an incorrect positional check in *DEPEND parsing. svn path=/main/trunk/; revision=2418 --- diff --git a/pym/portage_dep.py b/pym/portage_dep.py index 93d0049e7..287366734 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -63,7 +63,7 @@ def use_reduce(deparray, uselist=[], masklist=[], matchall=0, excludeall=[]): # Quick validity checks for x in range(len(deparray)): if deparray[x] in ["||","&&"]: - if len(deparray) == x: + if len(deparray) - 1 == x: # Operator is the last element raise portage_exception.InvalidDependString("INVALID "+deparray[x]+" DEPEND STRING: "+str(deparray)) if type(deparray[x+1]) != types.ListType: