From: Zac Medico Date: Fri, 11 Jan 2008 04:31:53 +0000 (-0000) Subject: Bug #203316 - Fix isvalidatom() to properly detect invalid operators X-Git-Tag: v2.2_pre1~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a8ec636aba2eec44e3f24e99b4f703df573ec4c;p=portage.git Bug #203316 - Fix isvalidatom() to properly detect invalid operators used together with slot atoms. Thanks to Arfrever Frehtes Taifersar Arahesis for the patch. svn path=/main/trunk/; revision=9166 --- diff --git a/pym/portage/dep.py b/pym/portage/dep.py index da0bb6427..bf42d2ba8 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -480,7 +480,7 @@ def isvalidatom(atom, allow_blockers=False): return 0 operator = get_operator(atom) if operator: - if operator[0] in "<>" and atom[-1] == "*": + if operator[0] in "<>" and remove_slot(atom).endswith("*"): return 0 if mycpv_cps and mycpv_cps[0] != "null": # >=cat/pkg-1.0