projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
976e6b3
)
Fix get_operator() and best_match_to_list() so that slot deps mesh properly with...
author
Zac Medico
<zmedico@gentoo.org>
Tue, 29 May 2007 20:37:05 +0000
(20:37 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 29 May 2007 20:37:05 +0000
(20:37 -0000)
svn path=/main/branches/2.1.2/; revision=6664
pym/portage_dep.py
patch
|
blob
|
history
diff --git
a/pym/portage_dep.py
b/pym/portage_dep.py
index de25866057e6013abd433fde54a7330e476529f4..ec590f20f03ddbbe9e0a0e40ff18f3ee33b835c0 100644
(file)
--- a/
pym/portage_dep.py
+++ b/
pym/portage_dep.py
@@
-266,6
+266,8
@@
def get_operator(mydep):
@return: The operator. One of:
'~', '=', '>', '<', '=*', '>=', or '<='
"""
+ if mydep:
+ mydep = remove_slot(mydep)
if mydep[0] == "~":
operator = "~"
elif mydep[0] == "=":
@@
-515,7
+517,6
@@
def best_match_to_list(mypkg, mylist):
if maxvalue < 3:
maxvalue = 3
bestm = x
- continue
op_val = operator_values[get_operator(x)]
if op_val > maxvalue:
maxvalue = op_val