From: Zac Medico Date: Wed, 11 Mar 2009 03:36:10 +0000 (-0000) Subject: Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12573) X-Git-Tag: v2.1.6.8~223 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f749bec1f0109d2c4a6d6930e30c83e71a1bfa72;p=portage.git Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12573) svn path=/main/branches/2.1.6/; revision=12854 --- 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