diff options
author | Brian Harring <ferringb@gmail.com> | 2011-08-31 17:29:58 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-12 14:23:10 -0700 |
commit | f908cddb505b81533861196c4713378e63dac1fa (patch) | |
tree | 5b457d169759dee1981a9cd44b52d875a8ea80eb /pym/portage/dbapi/porttree.py | |
parent | 53860ffa675b0cf1930589ff9fa15b5ffaa2cf75 (diff) | |
download | portage-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/portage/dbapi/porttree.py')
-rw-r--r-- | pym/portage/dbapi/porttree.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index ac972c433..bfff02647 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -597,7 +597,9 @@ class portdbapi(dbapi): if myebuild is None: raise AssertionError(_("ebuild not found for '%s'") % mypkg) pkgdir = os.path.dirname(myebuild) - mf = Manifest(pkgdir, self.settings["DISTDIR"]) + mf = self.repositories.get_repo_for_location( + os.path.dirname(os.path.dirname(pkgdir))).load_manifest( + pkgdir, self.settings["DISTDIR"]) checksums = mf.getDigests() if not checksums: if debug: @@ -665,7 +667,9 @@ class portdbapi(dbapi): if myebuild is None: raise AssertionError(_("ebuild not found for '%s'") % mypkg) pkgdir = os.path.dirname(myebuild) - mf = Manifest(pkgdir, self.settings["DISTDIR"]) + mf = self.repositories.get_repo_for_location( + os.path.dirname(os.path.dirname(pkgdir))) + mf = mf.load_manifest(pkgdir, self.settings["DISTDIR"]) mysums = mf.getDigests() failures = {} |