diff options
author | Jason Stubbs <jstubbs@gentoo.org> | 2005-12-21 14:46:37 +0000 |
---|---|---|
committer | Jason Stubbs <jstubbs@gentoo.org> | 2005-12-21 14:46:37 +0000 |
commit | 27d129da700aca1be8a8bf7fa26276169486dbf1 (patch) | |
tree | f541c0d83c825689e63a540c3c9d118515d22136 | |
parent | e57eef05744933c10a8dd91332c02fa4bec4e2fe (diff) | |
download | portage-27d129da700aca1be8a8bf7fa26276169486dbf1.tar.gz portage-27d129da700aca1be8a8bf7fa26276169486dbf1.tar.bz2 portage-27d129da700aca1be8a8bf7fa26276169486dbf1.zip |
Fix an incorrect positional check in *DEPEND parsing.
svn path=/main/trunk/; revision=2418
-rw-r--r-- | pym/portage_dep.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |