summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-09-29 16:33:44 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-09-29 16:33:44 +0000
commit0922db9882fdb849393d45a83e8a82ee9c037bb3 (patch)
tree651640170ed850b3b3c884bb0e062d24ad787448
parent8161d98aad4917db1fd03aad7aca039a4b8aa277 (diff)
downloadportage-0922db9882fdb849393d45a83e8a82ee9c037bb3.tar.gz
portage-0922db9882fdb849393d45a83e8a82ee9c037bb3.tar.bz2
portage-0922db9882fdb849393d45a83e8a82ee9c037bb3.zip
Prevent globbed atoms from having relative operators.
svn path=/main/branches/2.0/; revision=2052
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 737a8e3c5..53f194507 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -3067,6 +3067,8 @@ def isvalidatom(atom):
mycpv_cps = catpkgsplit(dep_getcpv(atom))
operator = get_operator(atom)
if operator:
+ if operator[0] in "<>" and atom[-1] == "*":
+ return 0
if mycpv_cps and mycpv_cps[0] != "null":
# >=cat/pkg-1.0
return 1