aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2016-06-19 11:29:56 -0400
committerTim Harder <radhermit@gmail.com>2016-06-19 11:29:56 -0400
commit84cedab394bf95716513afef9cc6487cef4a0623 (patch)
tree0f9a1babc0b2597e62fd57e17d746440d0a0f1b2
parenttest: add initial RepoConfig check for nonexistent, new repo (diff)
downloadpkgcore-84cedab394bf95716513afef9cc6487cef4a0623.tar.gz
pkgcore-84cedab394bf95716513afef9cc6487cef4a0623.tar.bz2
pkgcore-84cedab394bf95716513afef9cc6487cef4a0623.zip
ebuild/repository: _UnconfiguredTree: make trees a public attribute
It's useful for pkgcheck among other things.
-rw-r--r--pkgcore/ebuild/repository.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgcore/ebuild/repository.py b/pkgcore/ebuild/repository.py
index 2781cd1e0..cd4cada1a 100644
--- a/pkgcore/ebuild/repository.py
+++ b/pkgcore/ebuild/repository.py
@@ -273,10 +273,10 @@ class _UnconfiguredTree(prototype.tree):
self.eclass_cache = eclass_cache
self.masters = masters
- self._trees = tuple(masters) + (self,)
+ self.trees = tuple(masters) + (self,)
self.licenses = repo_objs.Licenses(self.location)
if masters:
- self.licenses = repo_objs.OverlayedLicenses(*self._trees)
+ self.licenses = repo_objs.OverlayedLicenses(*self.trees)
mirrors = {}
fp = pjoin(self.location, metadata_offset, "thirdpartymirrors")
@@ -384,7 +384,7 @@ class _UnconfiguredTree(prototype.tree):
# raise KeyError
return ()
categories = set()
- for repo in self._trees:
+ for repo in self.trees:
if repo.hardcoded_categories is not None:
categories.update(repo.hardcoded_categories)
if categories: