From f749bec1f0109d2c4a6d6930e30c83e71a1bfa72 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 03:36:10 +0000 Subject: [PATCH] Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12573) svn path=/main/branches/2.1.6/; revision=12854 --- bin/repoman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/repoman b/bin/repoman index 3696f717e..0f24fbafd 100755 --- a/bin/repoman +++ b/bin/repoman @@ -66,7 +66,7 @@ from portage.process import find_binary, spawn from portage.output import bold, create_color_func, darkgreen, \ green, nocolor, red, turquoise, yellow from portage.output import ConsoleStyleFile, StyleWriter -from portage.util import writemsg_level +from portage.util import cmp_sort_key, writemsg_level util.initialize_logger() @@ -846,7 +846,7 @@ for x in scanlist: ebuild_split = portage.pkgsplit(ebuildlist[i]) pkgsplits[ebuild_split] = ebuildlist[i] ebuildlist[i] = ebuild_split - ebuildlist.sort(portage.pkgcmp) + ebuildlist.sort(key=cmp_sort_key(portage.pkgcmp)) for i in xrange(len(ebuildlist)): ebuildlist[i] = pkgsplits[ebuildlist[i]] del pkgsplits -- 2.26.2