From 6e2f41e85f218a8d5b01ede772b9eb7feafdf49f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 21 Sep 2009 22:08:33 +0000 Subject: [PATCH] Fix sorted() keyword arg for py3k. svn path=/main/trunk/; revision=14368 --- pym/portage/getbinpkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py index 95bd1dbc6..804015dbe 100644 --- a/pym/portage/getbinpkg.py +++ b/pym/portage/getbinpkg.py @@ -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: -- 2.26.2