projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cea8614
)
Bug #203316 - Fix isvalidatom() to properly detect invalid operators
author
Zac Medico
<zmedico@gentoo.org>
Fri, 11 Jan 2008 04:31:53 +0000
(
04:31
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 11 Jan 2008 04:31:53 +0000
(
04:31
-0000)
used together with slot atoms. Thanks to Arfrever Frehtes Taifersar
Arahesis <Arfrever.FTA@GMail.Com> for the patch.
svn path=/main/trunk/; revision=9166
pym/portage/dep.py
patch
|
blob
|
history
diff --git
a/pym/portage/dep.py
b/pym/portage/dep.py
index da0bb64279556cf94fca9efe1de4cc0c8e0e6337..bf42d2ba85cfe70e0adbbf646f8b315e283a6158 100644
(file)
--- 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