Start from 1st element rather than 2nd when doing checks on *DEPEND
authorJason Stubbs <jstubbs@gentoo.org>
Thu, 3 Nov 2005 14:30:26 +0000 (14:30 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Thu, 3 Nov 2005 14:30:26 +0000 (14:30 -0000)
svn path=/main/branches/2.0/; revision=2253

pym/portage_dep.py

index 277b78c07994df78901904eb99ed0975668468d1..93d0049e7039e8e3aca2b47cd52f6692c1593959 100644 (file)
@@ -61,7 +61,7 @@ def use_reduce(deparray, uselist=[], masklist=[], matchall=0, excludeall=[]):
        leaving an array with subarrays
        """
        # Quick validity checks
-       for x in range(1,len(deparray)):
+       for x in range(len(deparray)):
                if deparray[x] in ["||","&&"]:
                        if len(deparray) == x:
                                # Operator is the last element