public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/checks/ebuilds/
Date: Tue, 11 Aug 2015 23:54:08 +0000 (UTC)	[thread overview]
Message-ID: <1439337170.b3484107d86f961308eff1c72e38db1872e8aafc.dolsen@gentoo> (raw)

commit:     b3484107d86f961308eff1c72e38db1872e8aafc
Author:     Tom Wijsman <tomwij <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 16:24:03 2014 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Aug 11 23:52:50 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b3484107

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	other threads:[~2015-08-11 23:54 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-11 23:54 Brian Dolbec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-01-20 23:53 [gentoo-commits] proj/portage:repoman commit in: pym/repoman/checks/ebuilds/ Zac Medico
2015-09-17  4:51 Brian Dolbec
2015-09-17  3:08 Brian Dolbec
2015-09-05 21:48 Brian Dolbec
2015-09-05 21:48 Brian Dolbec
2015-09-05 21:27 Brian Dolbec
2015-09-05 21:27 Brian Dolbec
2015-08-11 23:54 Brian Dolbec
2015-08-10 14:45 Michał Górny
2015-08-10 14:45 Michał Górny
2015-08-10 13:44 Brian Dolbec
2015-08-10 13:44 Brian Dolbec
2014-11-17  0:55 Brian Dolbec
2014-11-17  0:55 Brian Dolbec
2014-10-01 23:46 Brian Dolbec
2014-10-01 23:46 Brian Dolbec
2014-10-01 23:02 Brian Dolbec
2014-10-01 23:02 Brian Dolbec
2014-06-03 19:40 Brian Dolbec
2014-06-02 16:24 Tom Wijsman
2014-06-02 15:44 Brian Dolbec
2014-06-02 14:24 Brian Dolbec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439337170.b3484107d86f961308eff1c72e38db1872e8aafc.dolsen@gentoo \
    --to=dolsen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox