summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-12-21 14:46:37 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-12-21 14:46:37 +0000
commit27d129da700aca1be8a8bf7fa26276169486dbf1 (patch)
treef541c0d83c825689e63a540c3c9d118515d22136 /pym/portage_dep.py
parentDocument the full-path-to-executable requirement on FETCHCOMMAND and (diff)
downloadportage-multirepo-27d129da700aca1be8a8bf7fa26276169486dbf1.tar.gz
portage-multirepo-27d129da700aca1be8a8bf7fa26276169486dbf1.tar.bz2
portage-multirepo-27d129da700aca1be8a8bf7fa26276169486dbf1.zip
Fix an incorrect positional check in *DEPEND parsing.
svn path=/main/trunk/; revision=2418
Diffstat (limited to 'pym/portage_dep.py')
-rw-r--r--pym/portage_dep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index 93d0049e..28736673 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: