From: Zac Medico Date: Fri, 11 Jan 2008 05:49:02 +0000 (-0000) Subject: Bug #203316 - Fix isvalidatom() to properly detect invalid operators X-Git-Tag: v2.1.4~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e13a0f8091d6d846f3228c66b69a50f47f17077d;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. (trunk r9166) svn path=/main/branches/2.1.2/; revision=9174 --- diff --git a/pym/portage_dep.py b/pym/portage_dep.py index c00da1163..2ac6ada99 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -394,7 +394,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