From 9a8ec636aba2eec44e3f24e99b4f703df573ec4c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Jan 2008 04:31:53 +0000 Subject: 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 --- pym/portage/dep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22