projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9bdc4
)
Fix emerge --info breakage for python-3.x (cmp usage).
author
Zac Medico
<zmedico@gentoo.org>
Sun, 11 Jul 2010 19:54:29 +0000
(12:54 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 11 Jul 2010 19:54:29 +0000
(12:54 -0700)
pym/_emerge/actions.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/actions.py
b/pym/_emerge/actions.py
index 35923929a37f8290ad3ede76d9d28b7b2806779e..4c9edb17748fa17683c9891d4b12384a81f2ba49 100644
(file)
--- a/
pym/_emerge/actions.py
+++ b/
pym/_emerge/actions.py
@@
-1287,8
+1287,8
@@
def action_info(settings, trees, myopts, myfiles):
versions.append(ver + repo_suffix + provide_suffix)
- versions.sort(
cmp=lambda a,b: portage.versions.vercmp( \
- a.split()[0].split("::")[0], b.split()[0].split("::")[0]))
+ versions.sort(
key=cmp_sort_key(lambda a,b: portage.versions.vercmp(
+ a.split()[0].split("::")[0], b.split()[0].split("::")[0]))
)
if versions:
versions = ", ".join(versions)