commit:     5a5720b98aac27929a6c6485aee109a2cae30cf9
Author:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 16:24:03 2014 +0000
Commit:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 16:24:03 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5a5720b9

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
 
 

Reply via email to