commit: 05231093d7ab7b38f82f99d5ed6164f0dc40ab55 Author: Tom Wijsman <tomwij <AT> gentoo <DOT> org> AuthorDate: Mon Jun 2 16:24:03 2014 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Wed Oct 1 23:45:32 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=05231093
repoman/checks/ebuild/thirdpartymirrors.py: Fix logic --- pym/repoman/checks/ebuilds/thirdpartymirrors.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pym/repoman/checks/ebuilds/thirdpartymirrors.py b/pym/repoman/checks/ebuilds/thirdpartymirrors.py index cce61f6..f867c19 100644 --- a/pym/repoman/checks/ebuilds/thirdpartymirrors.py +++ b/pym/repoman/checks/ebuilds/thirdpartymirrors.py @@ -5,13 +5,15 @@ import portage class ThirdPartyMirrors(object): def __init__(self, repoman_settings, qatracker): - # Build a regex from thirdpartymirrors for the SRC_URI.mirror check. + # TODO: Build a regex instead here, for the SRC_URI.mirror check. self.thirdpartymirrors = {} - for k, v in repoman_settings.thirdpartymirrors().items(): - for v in v: - if not v.endswith("/"): - v += "/" - self.thirdpartymirrors[v] = k + profile_thirdpartymirrors = repoman_settings.thirdpartymirrors().items() + for mirror_alias, mirrors in profile_thirdpartymirrors: + for mirror in mirrors: + if not mirror.endswith("/"): + mirror += "/" + self.thirdpartymirrors[mirror] = mirror_alias + self.qatracker = qatracker