summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-01-09 19:57:09 -0800
committerZac Medico <zmedico@gentoo.org>2013-01-09 19:57:09 -0800
commit243080ecc5e867a4ab96d093b9cd3542c7337633 (patch)
tree3cf115b2d3cf07b73ef4f0d032ad4f1e776593f2
parent51d563b2df46ecab2b9be0a7cfd98aacfdd16b2a (diff)
downloadportage-243080ecc5e867a4ab96d093b9cd3542c7337633.tar.gz
portage-243080ecc5e867a4ab96d093b9cd3542c7337633.tar.bz2
portage-243080ecc5e867a4ab96d093b9cd3542c7337633.zip
FetchIterator: use RepoConfig.load_manifest()
-rw-r--r--pym/portage/_emirrordist/FetchIterator.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/portage/_emirrordist/FetchIterator.py b/pym/portage/_emirrordist/FetchIterator.py
index cc5d4be00..58044ac89 100644
--- a/pym/portage/_emirrordist/FetchIterator.py
+++ b/pym/portage/_emirrordist/FetchIterator.py
@@ -4,7 +4,6 @@
from portage import os
from portage.dep import use_reduce
from portage.exception import PortageException
-from portage.manifest import Manifest
from .FetchTask import FetchTask
class FetchIterator(object):
@@ -24,6 +23,7 @@ class FetchIterator(object):
def __iter__(self):
portdb = self._config.portdb
+ get_repo_for_location = portdb.repositories.get_repo_for_location
file_owners = self._config.file_owners
file_failures = self._config.file_failures
restrict_mirror_exemptions = self._config.restrict_mirror_exemptions
@@ -35,6 +35,7 @@ class FetchIterator(object):
# Reset state so the Manifest is pulled once
# for this cp / tree combination.
digests = None
+ repo_config = get_repo_for_location(tree)
for cpv in portdb.cp_list(cp, mytree=tree):
@@ -95,8 +96,9 @@ class FetchIterator(object):
# Parse Manifest for this cp if we haven't yet.
if digests is None:
try:
- digests = Manifest(os.path.join(
- tree, cp)).getTypeDigests("DIST")
+ digests = repo_config.load_manifest(
+ os.path.join(repo_config.location, cp)
+ ).getTypeDigests("DIST")
except (EnvironmentError, PortageException) as e:
for filename in uri_map:
self._log_failure(