From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/pkgcorepm/
Date: Mon, 25 Jul 2011 19:06:36 +0000 (UTC) [thread overview]
Message-ID: <a3bd4f5475fc3c78a484184a51cebc7e85d7a6d4.mgorny@gentoo> (raw)
commit: a3bd4f5475fc3c78a484184a51cebc7e85d7a6d4
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 25 18:48:52 2011 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 25 18:48:52 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=a3bd4f54
pkgcore: use configured trees.
---
gentoopm/pkgcorepm/__init__.py | 6 ++++--
gentoopm/pkgcorepm/repo.py | 14 ++++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/gentoopm/pkgcorepm/__init__.py b/gentoopm/pkgcorepm/__init__.py
index 10a5390..b31e80f 100644
--- a/gentoopm/pkgcorepm/__init__.py
+++ b/gentoopm/pkgcorepm/__init__.py
@@ -20,11 +20,13 @@ class PkgCorePM(PackageManager):
@property
def repositories(self):
- return PkgCoreRepoDict(self._domain.named_repos['repo-stack'])
+ return PkgCoreRepoDict(self._domain.named_repos['repo-stack'],
+ self._domain)
@property
def installed(self):
- return PkgCoreInstalledRepo(self._domain.named_repos['vdb'])
+ return PkgCoreInstalledRepo(self._domain.named_repos['vdb'],
+ self._domain)
@property
def Atom(self):
diff --git a/gentoopm/pkgcorepm/repo.py b/gentoopm/pkgcorepm/repo.py
index 095d89e..c11b01e 100644
--- a/gentoopm/pkgcorepm/repo.py
+++ b/gentoopm/pkgcorepm/repo.py
@@ -17,15 +17,17 @@ from gentoopm.util import FillMissingComparisons
class PkgCoreRepoDict(PMRepositoryDict):
def __iter__(self):
for i, r in enumerate(self._stack.trees):
- yield PkgCoreEbuildRepo(r, i)
+ yield PkgCoreEbuildRepo(r, self._domain, i)
- def __init__(self, stack):
+ def __init__(self, stack, domain):
self._stack = stack
+ self._domain = domain
class PkgCoreRepository(PkgCorePackageSet, PMRepository):
_index = 0
- def __init__(self, repo_obj):
- self._repo = repo_obj
+ def __init__(self, repo_obj, domain):
+ self._repo = repo_obj.configure(repo_obj, domain,
+ domain.settings)
@abstractproperty
def _pkg_class(self):
@@ -79,8 +81,8 @@ class PkgCoreEbuildRepo(PkgCoreRepository, PMEbuildRepository,
_pkg_class = PkgCoreInstallablePackage
- def __init__(self, repo_obj, index):
- PkgCoreRepository.__init__(self, repo_obj)
+ def __init__(self, repo_obj, domain, index):
+ PkgCoreRepository.__init__(self, repo_obj, domain)
self._index = index
@property
next reply other threads:[~2011-07-25 20:02 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-25 19:06 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-10-14 21:35 [gentoo-commits] proj/gentoopm:master commit in: gentoopm/pkgcorepm/ Michał Górny
2011-11-14 22:12 Michał Górny
2011-11-14 21:44 Michał Górny
2011-11-14 21:44 Michał Górny
2011-08-13 18:49 Michał Górny
2011-07-27 20:45 Michał Górny
2011-07-26 16:36 Michał Górny
2011-07-26 7:24 Michał Górny
2011-07-25 19:06 Michał Górny
2011-07-21 8:47 Michał Górny
2011-07-21 8:47 Michał Górny
2011-07-15 13:32 Michał Górny
2011-07-15 12:34 Michał Górny
2011-07-14 13:31 Michał Górny
2011-07-13 17:16 Michał Górny
2011-07-13 17:05 Michał Górny
2011-07-12 9:14 Michał Górny
2011-07-10 22:17 Michał Górny
2011-07-09 7:15 Michał Górny
2011-07-09 7:15 Michał Górny
2011-07-09 7:15 Michał Górny
2011-07-08 7:18 Michał Górny
2011-07-07 9:51 Michał Górny
2011-07-06 20:54 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a3bd4f5475fc3c78a484184a51cebc7e85d7a6d4.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox