Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12573)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:36:10 +0000 (03:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:36:10 +0000 (03:36 -0000)
svn path=/main/branches/2.1.6/; revision=12854

bin/repoman

index 3696f717ec64ffde89ae5a33e4098534249df0da..0f24fbafd978fb40d271fbef086f4e0c3fc6f864 100755 (executable)
@@ -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