From: Zac Medico Date: Sun, 11 Jul 2010 19:54:29 +0000 (-0700) Subject: Fix emerge --info breakage for python-3.x (cmp usage). X-Git-Tag: v2.2_rc68~522 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9bbaa4d888e60904cfce5e2a79380e34b3cce470;p=portage.git Fix emerge --info breakage for python-3.x (cmp usage). --- 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)