summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-07-11 12:54:29 -0700
committerZac Medico <zmedico@gentoo.org>2010-07-11 12:54:29 -0700
commit9bbaa4d888e60904cfce5e2a79380e34b3cce470 (patch)
tree1ece31e718377ff14c42b79bacb98acd86b2c4b4
parent9d9bdc4620d44cfbd6bdd0c8e4814b68fb7a0a66 (diff)
downloadportage-9bbaa4d888e60904cfce5e2a79380e34b3cce470.tar.gz
portage-9bbaa4d888e60904cfce5e2a79380e34b3cce470.tar.bz2
portage-9bbaa4d888e60904cfce5e2a79380e34b3cce470.zip
Fix emerge --info breakage for python-3.x (cmp usage).
-rw-r--r--pym/_emerge/actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 35923929a..4c9edb177 100644
--- 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)