From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F2926138B38 for ; Fri, 31 Jan 2014 15:44:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90AD1E09EA; Fri, 31 Jan 2014 15:44:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CDF04E09EA for ; Fri, 31 Jan 2014 15:44:53 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E77F633F6FB for ; Fri, 31 Jan 2014 15:44:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id ACF8C18854 for ; Fri, 31 Jan 2014 15:44:51 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1390517804.e1d0a9d4610eaafb9297e896ba4ed264e5fe939f.dol-sen@gentoo> Subject: [gentoo-commits] proj/mirrorselect:ssl commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/extractor.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: e1d0a9d4610eaafb9297e896ba4ed264e5fe939f X-VCS-Branch: ssl Date: Fri, 31 Jan 2014 15:44:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 17795201-5bf4-41c0-8548-ad739aec93f1 X-Archives-Hash: e783c73f4ab81b2e8d4564498a1a5ae9 commit: e1d0a9d4610eaafb9297e896ba4ed264e5fe939f Author: Brian Dolbec gentoo org> AuthorDate: Thu Jan 23 22:56:44 2014 +0000 Commit: Brian Dolbec gmail 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) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CDB5C13873B for ; Sun, 2 Mar 2014 07:44:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA976E0A9B; Sun, 2 Mar 2014 07:44:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2ED7CE0A9B for ; Sun, 2 Mar 2014 07:44:11 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5DF8F33FAF5 for ; Sun, 2 Mar 2014 07:44:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 41C61188F1 for ; Sun, 2 Mar 2014 07:44:08 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1390517804.e1d0a9d4610eaafb9297e896ba4ed264e5fe939f.dol-sen@gentoo> Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/extractor.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: e1d0a9d4610eaafb9297e896ba4ed264e5fe939f X-VCS-Branch: master Date: Sun, 2 Mar 2014 07:44:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 36a803ff-270b-46fc-a154-6061729c0bd2 X-Archives-Hash: 8a3124919a122281c20a70b530c5e17e Message-ID: <20140302074408.bp4TB-X5CjAxAqYviCWggarr6YZq5vfGU5KhgkIvE_U@z> commit: e1d0a9d4610eaafb9297e896ba4ed264e5fe939f Author: Brian Dolbec gentoo org> AuthorDate: Thu Jan 23 22:56:44 2014 +0000 Commit: Brian Dolbec gmail 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)