Fix sorted() keyword arg for py3k.
authorZac Medico <zmedico@gentoo.org>
Mon, 21 Sep 2009 22:08:33 +0000 (22:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 21 Sep 2009 22:08:33 +0000 (22:08 -0000)
svn path=/main/trunk/; revision=14368

pym/portage/getbinpkg.py

index 95bd1dbc65aad52528c51b8f20b5f8de169cfe39..804015dbef72ddd004e4f842c1b13a509dd8ea97 100644 (file)
@@ -821,7 +821,8 @@ class PackageIndex(object):
                keys.sort()
                self._writepkgindex(pkgfile, [(k, self.header[k]) \
                        for k in keys if self.header[k]])
-               for metadata in sorted(self.packages, _cmp_cpv):
+               for metadata in sorted(self.packages,
+                       key=portage.util.cmp_sort_key(_cmp_cpv)):
                        metadata = metadata.copy()
                        cpv = metadata["CPV"]
                        if self._inherited_keys: