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 1QhMXu-0005t8-JE for garchives@archives.gentoo.org; Thu, 14 Jul 2011 14:05:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF23221C0DD; Thu, 14 Jul 2011 14:05:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BE93621C0DD for ; Thu, 14 Jul 2011 14:05:33 +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 3A05A2AC2A7 for ; Thu, 14 Jul 2011 14:05:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 54F5D8003D for ; Thu, 14 Jul 2011 14:05: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/portagepm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/portagepm/atom.py gentoopm/portagepm/pkg.py X-VCS-Directories: gentoopm/portagepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a561d3cff13fb1ee090fc57c5c7db131b203274d Date: Thu, 14 Jul 2011 14:05: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: 0ed2d7ee751fe41045d4280bb99cddd6 commit: a561d3cff13fb1ee090fc57c5c7db131b203274d Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Thu Jul 14 13:58:08 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Thu Jul 14 13:59:08 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3Da561d3cf Portage: fix getting package atom. --- gentoopm/portagepm/atom.py | 2 +- gentoopm/portagepm/pkg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gentoopm/portagepm/atom.py b/gentoopm/portagepm/atom.py index 6e28d3c..f68d136 100644 --- a/gentoopm/portagepm/atom.py +++ b/gentoopm/portagepm/atom.py @@ -35,7 +35,7 @@ class PortageAtom(object): return CompletePortageAtom(a, pkg) =20 class CompletePortageAtom(PMAtom): - def __init__(self, a, pkg): + def __init__(self, a, pkg =3D None): self._atom =3D a self._pkg =3D pkg =20 diff --git a/gentoopm/portagepm/pkg.py b/gentoopm/portagepm/pkg.py index ff80ae5..c7212f9 100644 --- a/gentoopm/portagepm/pkg.py +++ b/gentoopm/portagepm/pkg.py @@ -45,7 +45,7 @@ class PortageDBCPV(PMPackage): =20 @property def atom(self): - return PkgCoreAtom('=3D%s' % self.id, self) + return PortageAtom('=3D%s' % self.id, self) =20 class PortageCPV(PortageDBCPV): def __init__(self, cpv, dbapi, tree, repo_prio):