public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/
Date: Sun,  2 Mar 2014 07:44:08 +0000 (UTC)	[thread overview]
Message-ID: <1390517804.e1d0a9d4610eaafb9297e896ba4ed264e5fe939f.dol-sen@gentoo> (raw)
Message-ID: <20140302074408.bp4TB-X5CjAxAqYviCWggarr6YZq5vfGU5KhgkIvE_U@z> (raw)

commit:     e1d0a9d4610eaafb9297e896ba4ed264e5fe939f
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 23 22:56:44 2014 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Thu Jan 23 22:56:44 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/mirrorselect.git;a=commit;h=e1d0a9d4

Use the new sslfetch pkg for the Connector class.

---
 mirrorselect/extractor.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mirrorselect/extractor.py b/mirrorselect/extractor.py
index c8d5bd5..a949c75 100644
--- a/mirrorselect/extractor.py
+++ b/mirrorselect/extractor.py
@@ -30,8 +30,10 @@ Distributed under the terms of the GNU General Public License v2
 import os
 
 from mirrorselect.mirrorparser3 import MirrorParser3
-from mirrorselect.connections import Connector
+from sslfetch.connections import Connector
+from mirrorselect.version import version
 
+USERAGENT = "Mirrorselect-" + version
 
 class Extractor(object):
 	"""The Extractor employs a MirrorParser3 object to get a list of valid
@@ -101,7 +103,7 @@ class Extractor(object):
 
 		self.output.print_info('Downloading a list of mirrors...\n')
 
-		fetcher = Connector(self.output, self.proxies)
+		fetcher = Connector(self.output, self.proxies, USERAGENT)
 		success, mirrorlist, timestamp = fetcher.fetch_content(url)
 		parser.parse(mirrorlist)
 


             reply	other threads:[~2014-03-02  7:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-31 15:44 Brian Dolbec [this message]
2014-03-02  7:44 ` [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ Brian Dolbec
  -- strict thread matches above, loose matches on Subject: below --
2014-03-02  7:44 [gentoo-commits] proj/mirrorselect:ssl " Brian Dolbec
2014-03-02  7:44 [gentoo-commits] proj/mirrorselect:master " Brian Dolbec
2014-01-31 15:44 ` [gentoo-commits] proj/mirrorselect:ssl " Brian Dolbec
2014-03-02  7:44 [gentoo-commits] proj/mirrorselect:master " Brian Dolbec
2014-01-31 15:44 ` [gentoo-commits] proj/mirrorselect:ssl " Brian Dolbec
2013-10-20 18:19 Brian Dolbec
2013-10-20  8:16 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=1390517804.e1d0a9d4610eaafb9297e896ba4ed264e5fe939f.dol-sen@gentoo \
    --to=brian.dolbec@gmail.com \
    --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