Prevent globbed atoms from having relative operators.
authorJason Stubbs <jstubbs@gentoo.org>
Thu, 29 Sep 2005 16:33:44 +0000 (16:33 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Thu, 29 Sep 2005 16:33:44 +0000 (16:33 -0000)
svn path=/main/branches/2.0/; revision=2052

pym/portage.py

index 737a8e3c5b7342de3e35f1d8c5da3f2f80a70914..53f194507b041d41d29214cd64db960074e5be1c 100644 (file)
@@ -3067,6 +3067,8 @@ def isvalidatom(atom):
        mycpv_cps = catpkgsplit(dep_getcpv(atom))
        operator = get_operator(atom)
        if operator:
+               if operator[0] in "<>" and atom[-1] == "*":
+                       return 0
                if mycpv_cps and mycpv_cps[0] != "null":
                        # >=cat/pkg-1.0
                        return 1