From 27d129da700aca1be8a8bf7fa26276169486dbf1 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Wed, 21 Dec 2005 14:46:37 +0000 Subject: [PATCH] Fix an incorrect positional check in *DEPEND parsing. svn path=/main/trunk/; revision=2418 --- pym/portage_dep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2