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 35A5113873B for ; Sun, 2 Mar 2014 07:44:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67665E0A7E; Sun, 2 Mar 2014 07:44:10 +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 CE1F9E0A88 for ; Sun, 2 Mar 2014 07:44:09 +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 E3CEE33FB62 for ; Sun, 2 Mar 2014 07:44:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id A606D188ED for ; Sun, 2 Mar 2014 07:44:07 +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: <1382246387.ecf8787be751a013cc15ab1b77d58ed7655c1f02.dol-sen@gentoo> Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/main.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: ecf8787be751a013cc15ab1b77d58ed7655c1f02 X-VCS-Branch: master Date: Sun, 2 Mar 2014 07:44:07 +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: 0d21f412-a2af-4d24-bb9b-46b4882ee1fa X-Archives-Hash: 5521476f62afd7620760c79e0eed58ca commit: ecf8787be751a013cc15ab1b77d58ed7655c1f02 Author: Brian Dolbec gentoo org> AuthorDate: Sun Oct 20 05:19:47 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Oct 20 05:19:47 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mirrorselect.git;a=commit;h=ecf8787b Add a proxy option to the cli. Preliminary only, not tested. --- mirrorselect/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mirrorselect/main.py b/mirrorselect/main.py index 5838b79..4c26c02 100755 --- a/mirrorselect/main.py +++ b/mirrorselect/main.py @@ -240,6 +240,12 @@ class MirrorSelect(object): default='bdf077b2e683c506bf9e8f2494eeb044', help="An alternate file md5sum value used to compare the downloaded " "file against for deep testing.") + group.add_option( + "-P", "--proxy", action="store", + default=None, + help="Proxy server to use if not the default proxy " + "in the environment") + if len(argv) == 1: