diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-01-11 05:49:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-01-11 05:49:02 +0000 |
commit | e13a0f8091d6d846f3228c66b69a50f47f17077d (patch) | |
tree | b73998193b5a62a28b3a1fcab3a5924c5d3d3715 | |
parent | 3541e3856fc232d2e5c0fe0edde4c8da0c3a99a8 (diff) | |
download | portage-e13a0f8091d6d846f3228c66b69a50f47f17077d.tar.gz portage-e13a0f8091d6d846f3228c66b69a50f47f17077d.tar.bz2 portage-e13a0f8091d6d846f3228c66b69a50f47f17077d.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. (trunk r9166)
svn path=/main/branches/2.1.2/; revision=9174
-rw-r--r-- | pym/portage_dep.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |