Commits

Michał Górny committed e8b4340

Move repo-stack getting directly to pkgcorepm.repo.

Comments (0)

Files changed (2)

gentoopm/pkgcorepm/__init__.py

 
 	@property
 	def repositories(self):
-		return PkgCoreRepoDict(self._domain.named_repos['repo-stack'],
-				self._domain)
+		return PkgCoreRepoDict(self._domain)
 
 	@property
 	def root(self):

gentoopm/pkgcorepm/repo.py

 
 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)
 
-	def __init__(self, stack, domain):
-		self._stack = stack
+	def __init__(self, domain):
 		self._domain = domain
 
 class PkgCoreRepository(PkgCorePackageSet, PMRepository):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.