Fix get_operator() and best_match_to_list() so that slot deps mesh properly with...
authorZac Medico <zmedico@gentoo.org>
Tue, 29 May 2007 20:36:40 +0000 (20:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 29 May 2007 20:36:40 +0000 (20:36 -0000)
svn path=/main/trunk/; revision=6663

pym/portage/dep.py

index 134e53bde79b27757c60909f823a9377dee4cfe2..1252b5d2680fe5f9212664ad818eef244a42b1d1 100644 (file)
@@ -322,6 +322,8 @@ def get_operator(mydep):
        @return: The operator. One of:
                '~', '=', '>', '<', '=*', '>=', or '<='
        """
+       if mydep:
+               mydep = remove_slot(mydep)
        if mydep[0] == "~":
                operator = "~"
        elif mydep[0] == "=":
@@ -601,7 +603,6 @@ def best_match_to_list(mypkg, mylist):
                        if maxvalue < 3:
                                maxvalue = 3
                                bestm = x
-                       continue
                op_val = operator_values[get_operator(x)]
                if op_val > maxvalue:
                        maxvalue = op_val