Fix emerge --info breakage for python-3.x (cmp usage).
authorZac Medico <zmedico@gentoo.org>
Sun, 11 Jul 2010 19:54:29 +0000 (12:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 11 Jul 2010 19:54:29 +0000 (12:54 -0700)
pym/_emerge/actions.py

index 35923929a37f8290ad3ede76d9d28b7b2806779e..4c9edb17748fa17683c9891d4b12384a81f2ba49 100644 (file)
@@ -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)