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 1RQ4Ky-0001rF-AM for garchives@archives.gentoo.org; Mon, 14 Nov 2011 21:45:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3A0821C04E; Mon, 14 Nov 2011 21:44:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7CCCC21C04E for ; Mon, 14 Nov 2011 21:44:58 +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 C5C6D1B400C for ; Mon, 14 Nov 2011 21:44:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 3B8A480042 for ; Mon, 14 Nov 2011 21:44:57 +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/__init__.py gentoopm/pkgcorepm/repo.py X-VCS-Directories: gentoopm/pkgcorepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e8b4340507e5e0b575583a72e0f38ca4e2a84b6b Date: Mon, 14 Nov 2011 21:44:57 +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: ae4f0a1e-41e7-4dd6-9ac8-2e5405e2e2d7 X-Archives-Hash: e65ab6d18e0f9bea946a2a7fd9e9565f commit: e8b4340507e5e0b575583a72e0f38ca4e2a84b6b Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Mon Nov 14 20:21:57 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Mon Nov 14 20:21:57 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3De8b43405 Move repo-stack getting directly to pkgcorepm.repo. --- gentoopm/pkgcorepm/__init__.py | 3 +-- gentoopm/pkgcorepm/repo.py | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gentoopm/pkgcorepm/__init__.py b/gentoopm/pkgcorepm/__init__= .py index 53afaaf..aa117a0 100644 --- a/gentoopm/pkgcorepm/__init__.py +++ b/gentoopm/pkgcorepm/__init__.py @@ -25,8 +25,7 @@ class PkgCorePM(PackageManager): =20 @property def repositories(self): - return PkgCoreRepoDict(self._domain.named_repos['repo-stack'], - self._domain) + return PkgCoreRepoDict(self._domain) =20 @property def root(self): diff --git a/gentoopm/pkgcorepm/repo.py b/gentoopm/pkgcorepm/repo.py index 85434b8..b082420 100644 --- a/gentoopm/pkgcorepm/repo.py +++ b/gentoopm/pkgcorepm/repo.py @@ -17,11 +17,10 @@ from .filter import transform_filters =20 class PkgCoreRepoDict(PMRepositoryDict): def __iter__(self): - for i, r in enumerate(self._stack.trees): + for i, r in enumerate(self._domain.named_repos['repo-stack'].trees): yield PkgCoreEbuildRepo(r, self._domain, i) =20 - def __init__(self, stack, domain): - self._stack =3D stack + def __init__(self, domain): self._domain =3D domain =20 class PkgCoreRepository(PkgCorePackageSet, PMRepository):