From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RwLxU-0003ih-Ex for garchives@archives.gentoo.org; Sat, 11 Feb 2012 23:02:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 806B1E060D; Sat, 11 Feb 2012 23:02:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 53BE7E060D for ; Sat, 11 Feb 2012 23:02:13 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B74011B4006 for ; Sat, 11 Feb 2012 23:02:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7CBA5E53FF for ; Sat, 11 Feb 2012 23:02:11 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <33d82be6f57cb845ae957309be9a4ab4303de0de.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/MetadataRegen.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 33d82be6f57cb845ae957309be9a4ab4303de0de Date: Sat, 11 Feb 2012 23:02:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 8bfa23ba-3c1c-457c-a1a3-03f21db6c7ff X-Archives-Hash: 7c7a06fec76801b1b0c4114c2bb2f679 commit: 33d82be6f57cb845ae957309be9a4ab4303de0de Author: Zac Medico gentoo org> AuthorDate: Sat Feb 11 23:01:55 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Feb 11 23:01:55 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D33d82be6 MetadataRegen: use porttrees --- pym/_emerge/MetadataRegen.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/MetadataRegen.py b/pym/_emerge/MetadataRegen.py index e0c8092..b4c98dc 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 =3D portdb.repositories.get_repo_for_location(mytree) cpv_list =3D portdb.cp_list(cp, mytree=3D[repo.location]) for cpv in cpv_list: if self._terminated_tasks: