From 9bbaa4d888e60904cfce5e2a79380e34b3cce470 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 11 Jul 2010 12:54:29 -0700 Subject: [PATCH] Fix emerge --info breakage for python-3.x (cmp usage). --- pym/_emerge/actions.py | 4 ++-- 1 file 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) -- 2.26.2