summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-11 04:31:53 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-11 04:31:53 +0000
commit9a8ec636aba2eec44e3f24e99b4f703df573ec4c (patch)
tree268d05cba575aab776f41234ada83a3ee1d7bcfc
parentcea8614c30d30cfbdfcb9bee8585f42f7db04f95 (diff)
downloadportage-9a8ec636aba2eec44e3f24e99b4f703df573ec4c.tar.gz
portage-9a8ec636aba2eec44e3f24e99b4f703df573ec4c.tar.bz2
portage-9a8ec636aba2eec44e3f24e99b4f703df573ec4c.zip
Bug #203316 - Fix isvalidatom() to properly detect invalid operators
used together with slot atoms. Thanks to Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for the patch. svn path=/main/trunk/; revision=9166
-rw-r--r--pym/portage/dep.py2
1 files changed, 1 insertions, 1 deletions
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