From: Zac Medico Date: Tue, 3 Feb 2009 00:18:27 +0000 (-0000) Subject: Use portage.util.cmp_sort_key for python-3.0 compatibility. X-Git-Tag: v2.2_rc24~229 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e98844d54e982164858d42967f7ea80d298aa4f3;p=portage.git Use portage.util.cmp_sort_key for python-3.0 compatibility. svn path=/main/trunk/; revision=12573 --- diff --git a/bin/repoman b/bin/repoman index 0a8166c65..3c062d7fd 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