summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-03 00:18:27 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-03 00:18:27 +0000
commite98844d54e982164858d42967f7ea80d298aa4f3 (patch)
tree14798a96e1f7ccc77492f07f1111401c0c04a978 /bin/repoman
parent5259d74ef16295cdcc2300c4bbe288843bfa5c2a (diff)
downloadportage-e98844d54e982164858d42967f7ea80d298aa4f3.tar.gz
portage-e98844d54e982164858d42967f7ea80d298aa4f3.tar.bz2
portage-e98844d54e982164858d42967f7ea80d298aa4f3.zip
Use portage.util.cmp_sort_key for python-3.0 compatibility.
svn path=/main/trunk/; revision=12573
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman4
1 files changed, 2 insertions, 2 deletions
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