From e13a0f8091d6d846f3228c66b69a50f47f17077d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Jan 2008 05:49:02 +0000 Subject: [PATCH] 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 --- pym/portage_dep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2