diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:36:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:36:10 +0000 |
commit | f749bec1f0109d2c4a6d6930e30c83e71a1bfa72 (patch) | |
tree | 9bccac3342d2bdc8f99fc886dab7ba71162d157a /bin | |
parent | 108c7244234ae459e60bb6eea3800958cef4dc25 (diff) | |
download | portage-f749bec1f0109d2c4a6d6930e30c83e71a1bfa72.tar.gz portage-f749bec1f0109d2c4a6d6930e30c83e71a1bfa72.tar.bz2 portage-f749bec1f0109d2c4a6d6930e30c83e71a1bfa72.zip |
Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12573)
svn path=/main/branches/2.1.6/; revision=12854
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/repoman | 4 |
1 files changed, 2 insertions, 2 deletions
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 |