Fix isvalidatom() logic from previous commit to avoid false positives.
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Feb 2009 05:01:42 +0000 (05:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Feb 2009 05:01:42 +0000 (05:01 -0000)
svn path=/main/trunk/; revision=12615

pym/portage/dep.py

index 3388d8404ce4badf83c7f16d6fd1c05f4ea2e0ac..bde7f9c2ee299fade5245190c6e335f0f536ba1d 100644 (file)
@@ -795,7 +795,7 @@ def isvalidatom(atom, allow_blockers=False):
                                        mycpv_cps[0] = "null"
                if not mycpv_cps:
                        mycpv_cps = catpkgsplit(cpv)
-               if mycpv_cps is None:
+               if mycpv_cps is None and cpv != atom:
                        return 0
 
        operator = get_operator(atom)