summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildFetcher.py
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gmail.com>2011-08-31 17:29:58 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-12 14:23:10 -0700
commitf908cddb505b81533861196c4713378e63dac1fa (patch)
tree5b457d169759dee1981a9cd44b52d875a8ea80eb /pym/_emerge/EbuildFetcher.py
parent53860ffa675b0cf1930589ff9fa15b5ffaa2cf75 (diff)
downloadportage-f908cddb505b81533861196c4713378e63dac1fa.tar.gz
portage-f908cddb505b81533861196c4713378e63dac1fa.tar.bz2
portage-f908cddb505b81533861196c4713378e63dac1fa.zip
Bind all manifest access through repoconfigs
This enables controling the behaviour (creation and validation) per repo, and while mildly ugly, refactors in the right direction.
Diffstat (limited to 'pym/_emerge/EbuildFetcher.py')
-rw-r--r--pym/_emerge/EbuildFetcher.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py
index feb68d072..4389f8408 100644
--- a/pym/_emerge/EbuildFetcher.py
+++ b/pym/_emerge/EbuildFetcher.py
@@ -206,8 +206,10 @@ class EbuildFetcher(SpawnProcess):
def _get_digests(self):
if self._digests is not None:
return self._digests
- self._digests = portage.Manifest(os.path.dirname(
- self._get_ebuild_path()), None).getTypeDigests("DIST")
+ pkgdir = os.path.dirname(self._get_ebuild_path())
+ mf = self.pkg.root_config.settings.repositories.get_repo_for_location(
+ os.path.dirname(os.path.dirname(pkgdir)))
+ self._digests = mf.load_manifest(pkgdir, None).getTypeDigests("DIST")
return self._digests
def _get_uri_map(self):