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 1QelFF-00028H-S5 for garchives@archives.gentoo.org; Thu, 07 Jul 2011 09:51:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 881C121C0CA; Thu, 7 Jul 2011 09:51:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5B5B921C076 for ; Thu, 7 Jul 2011 09:51:34 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DAE7C2AC06D for ; Thu, 7 Jul 2011 09:51:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E5DCA80042 for ; Thu, 7 Jul 2011 09:51:32 +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: Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/pkgcorepm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/pkgcorepm/pkg.py X-VCS-Directories: gentoopm/pkgcorepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ed2b5adbd0af75cf03c3091261504a5a1ded43fd Date: Thu, 7 Jul 2011 09:51:32 +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: X-Archives-Hash: 853c7ca90359fde30294dbed587e8cec commit: ed2b5adbd0af75cf03c3091261504a5a1ded43fd Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Thu Jul 7 09:31:56 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Thu Jul 7 09:31:56 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3Ded2b5adb pkgcore: don't append ::repo to installed. --- gentoopm/pkgcorepm/pkg.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/gentoopm/pkgcorepm/pkg.py b/gentoopm/pkgcorepm/pkg.py index 5c33a46..220473f 100644 --- a/gentoopm/pkgcorepm/pkg.py +++ b/gentoopm/pkgcorepm/pkg.py @@ -25,7 +25,10 @@ class PkgCorePackage(PMPackage): =20 @property def id(self): - return '%s::%s' % (self._pkg.cpvstr, self._pkg.repo.repo_id) + if self._repo_index !=3D 0: + return '%s::%s' % (self._pkg.cpvstr, self._pkg.repo.repo_id) + else: + return self._pkg.cpvstr =20 def __cmp__(self, other): if not isinstance(other, PkgCorePackage):