From: Zac Medico Date: Sat, 11 Feb 2012 23:01:55 +0000 (-0800) Subject: MetadataRegen: use porttrees X-Git-Tag: v2.2.0_alpha86~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33d82be6f57cb845ae957309be9a4ab4303de0de;p=portage.git MetadataRegen: use porttrees --- diff --git a/pym/_emerge/MetadataRegen.py b/pym/_emerge/MetadataRegen.py index e0c80925f..b4c98dc7e 100644 --- a/pym/_emerge/MetadataRegen.py +++ b/pym/_emerge/MetadataRegen.py @@ -62,7 +62,10 @@ class MetadataRegen(PollScheduler): break cp_set.add(cp) portage.writemsg_stdout("Processing %s\n" % cp) - for repo in portdb.repositories: + # We iterate over portdb.porttrees, since it's common to + # tweak this attribute in order to adjust repo selection. + for mytree in portdb.porttrees: + repo = portdb.repositories.get_repo_for_location(mytree) cpv_list = portdb.cp_list(cp, mytree=[repo.location]) for cpv in cpv_list: if self._terminated_tasks: