Fix isvalidatom to properly identify an invalid atom such as
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Feb 2009 04:59:03 +0000 (04:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Feb 2009 04:59:03 +0000 (04:59 -0000)
'dev-java/nanoxml*'. Thanks to Vlastimil Babka <caster@g.o> for reporting.

svn path=/main/trunk/; revision=12614

pym/portage/dep.py

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