aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2017-12-20 02:37:53 -0500
committerTim Harder <radhermit@gmail.com>2017-12-20 02:37:53 -0500
commit1863b397825cf6c4af954498173f8edee29936b3 (patch)
treeadbad795d7e2632c287e430498748bddf5e6a9ca
parentebuild.portage_conf: allow setups where no repos are defined (diff)
downloadpkgcore-1863b397825cf6c4af954498173f8edee29936b3.tar.gz
pkgcore-1863b397825cf6c4af954498173f8edee29936b3.tar.bz2
pkgcore-1863b397825cf6c4af954498173f8edee29936b3.zip
ebuild.domain: fix unfiltered repos attr
-rw-r--r--src/pkgcore/ebuild/domain.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pkgcore/ebuild/domain.py b/src/pkgcore/ebuild/domain.py
index 44ff92132..ad55f8d76 100644
--- a/src/pkgcore/ebuild/domain.py
+++ b/src/pkgcore/ebuild/domain.py
@@ -214,7 +214,6 @@ class domain(config_domain):
# initialize base repo groups
self.source_repos_raw = RepositoryGroup(r.instantiate() for r in repositories)
self.installed_repos_raw = RepositoryGroup(r.instantiate() for r in vdb)
- self.unfiltered_repos = RepositoryGroup()
if self.profile.provides_repo is not None:
self.installed_repos_raw += self.profile.provides_repo
@@ -645,7 +644,6 @@ class domain(config_domain):
raise_from(Failure("failed configuring repo '%s': "
"configurable missing: %s" % (repo, e)))
configured_repo = repo.configure(*pargs)
- self.unfiltered_repos += configured_repo
return configured_repo
def _filter_repo(self, repo):
@@ -707,6 +705,13 @@ class domain(config_domain):
return repos
@klass.jit_attr_none
+ def unfiltered_repos(self):
+ """Group of unfiltered package repos."""
+ repos = chain(self.source_repos, self.installed_repos)
+ return RepositoryGroup(
+ (r.raw_repo if r.raw_repo is not None else r) for r in repos)
+
+ @klass.jit_attr_none
def repos(self):
"""Group of all repos."""
return RepositoryGroup(