From: Zac Medico Date: Sun, 15 Feb 2009 04:59:03 +0000 (-0000) Subject: Fix isvalidatom to properly identify an invalid atom such as X-Git-Tag: v2.2_rc24~191 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd731cef67101dec9a66ac2172a00f347e3a6c37;p=portage.git 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 --- 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: