From e98844d54e982164858d42967f7ea80d298aa4f3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 3 Feb 2009 00:18:27 +0000 Subject: Use portage.util.cmp_sort_key for python-3.0 compatibility. svn path=/main/trunk/; revision=12573 --- bin/repoman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/repoman') 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 -- cgit v1.2.3-1-g7c22