From cd731cef67101dec9a66ac2172a00f347e3a6c37 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 15 Feb 2009 04:59:03 +0000 Subject: [PATCH] Fix isvalidatom to properly identify an invalid atom such as 'dev-java/nanoxml*'. Thanks to Vlastimil Babka for reporting. svn path=/main/trunk/; revision=12614 --- pym/portage/dep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 9c9c14380..3388d8404 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -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: -- 2.26.2