From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RQ4m2-0005uO-7s for garchives@archives.gentoo.org; Mon, 14 Nov 2011 22:13:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 218CA21C02B; Mon, 14 Nov 2011 22:12:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E157A21C02B for ; Mon, 14 Nov 2011 22:12:57 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 575C81B400C for ; Mon, 14 Nov 2011 22:12:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 73DC480042 for ; Mon, 14 Nov 2011 22:12:56 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <9c5daa42afecdbf3e47deca671c820b38dcca14a.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/pkgcorepm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/pkgcorepm/repo.py X-VCS-Directories: gentoopm/pkgcorepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 9c5daa42afecdbf3e47deca671c820b38dcca14a Date: Mon, 14 Nov 2011 22:12:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 15721d0a-1a06-470e-adf7-a246669d979b X-Archives-Hash: e7b08f7478a535fc2091a2f62eb690fe commit: 9c5daa42afecdbf3e47deca671c820b38dcca14a Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Mon Nov 14 22:12:51 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Mon Nov 14 22:12:51 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3D9c5daa42 pkgcore: fix package sorting with 0.7.5+. --- gentoopm/pkgcorepm/repo.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/gentoopm/pkgcorepm/repo.py b/gentoopm/pkgcorepm/repo.py index 13aa1c0..dc43148 100644 --- a/gentoopm/pkgcorepm/repo.py +++ b/gentoopm/pkgcorepm/repo.py @@ -26,9 +26,12 @@ class PkgCoreRepoDict(PMRepositoryDict): =20 trees =3D filter(_match_ebuild_repos, self._domain.named_repos.values()) + rev =3D -1 + else: + rev =3D 1 =20 for i, r in enumerate(trees): - yield PkgCoreEbuildRepo(r, self._domain, i) + yield PkgCoreEbuildRepo(r, self._domain, rev * i) =20 def __init__(self, domain): self._domain =3D domain