From patchwork Tue Oct 18 14:56:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9382287 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 624F5600CA for ; Tue, 18 Oct 2016 14:58:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5174929625 for ; Tue, 18 Oct 2016 14:58:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4647629632; Tue, 18 Oct 2016 14:58:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E9A0B29625 for ; Tue, 18 Oct 2016 14:58:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwVoz-0008I3-8s; Tue, 18 Oct 2016 14:56:53 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwVox-0008H8-H9 for xen-devel@lists.xenproject.org; Tue, 18 Oct 2016 14:56:51 +0000 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id 80/C9-28813-23836085; Tue, 18 Oct 2016 14:56:50 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeJIrShJLcpLzFFi42KZM10+UNfIgi3 CYN8SPovvWyYzOTB6HP5whSWAMYo1My8pvyKBNaNn9wW2gk7uiisdD9kbGDdxdjFycQgJTGSS WDn/AjuE841Rou3NRTYIZyOjxM5r15ggnFmMEpMv9bB2MXJwsAmYSLxZ5djFyMkhImAlsaz3H 1g3s8AURonzd16wgiSEBYwlrm+dxwhiswioSsx7NA8szivgJrH9x1pmkDkSAvISz27Xg4Q5Bd wlZi08DlYuBFSybMddsHIJAUOJ0w+3MU5g5FvAyLCKUb04tagstUjXWC+pKDM9oyQ3MTNH19D AWC83tbg4MT01JzGpWC85P3cTIzBQGIBgB2PzF6dDjJIcTEqivH76bBFCfEn5KZUZicUZ8UWl OanFhxhlODiUJHgtzIFygkWp6akVaZk5wJCFSUtw8CiJ8CqCpHmLCxJzizPTIVKnGHU5Zi2/s 5ZJiCUvPy9VShxihgBIUUZpHtwIWPxcYpSVEuZlBDpKiKcgtSg3swRV/hWjOAejkjAvC8gUns y8ErhNr4COYAI64lweC8gRJYkIKakGRrUXF3eEbXjiF5yQ56Y/vzg357iX/1FXlpiZdQKuC3f d+sHD8N68tn67v2vuoblRvvZ60vvcXJe7VlX65sWmp2kLikTd+FXnvFAvLNUrzmZCyhml1ac2 N34U1/QJP8Ad9TTx6e7zL7jKpTW9PpxcpujH92HbLP4fIr+udPi/tPLimF6c1H9KiaU4I9FQi 7moOBEA2qSaMpoCAAA= X-Env-Sender: konrad.wilk@oracle.com X-Msg-Ref: server-2.tower-31.messagelabs.com!1476802608!66744036!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 47116 invoked from network); 18 Oct 2016 14:56:49 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-2.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 18 Oct 2016 14:56:49 -0000 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u9IEukfB020440 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Oct 2016 14:56:46 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id u9IEukWL023541 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Oct 2016 14:56:46 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u9IEuhvm029736; Tue, 18 Oct 2016 14:56:45 GMT Received: from localhost.localdomain.localdomain (/172.58.217.242) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Oct 2016 07:56:42 -0700 From: Konrad Rzeszutek Wilk To: ian.jackson@citrix.com, xen-devel@lists.xenproject.org Date: Tue, 18 Oct 2016 10:56:28 -0400 Message-Id: <1476802588-28894-3-git-send-email-konrad.wilk@oracle.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1476802588-28894-1-git-send-email-konrad.wilk@oracle.com> References: <1476802588-28894-1-git-send-email-konrad.wilk@oracle.com> X-Source-IP: userv0021.oracle.com [156.151.31.71] Cc: Marcos.Matsunaga@oracle.com, Konrad Rzeszutek Wilk , Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH 2/2] s/HttpProxy/DebianMirrorProxy/ X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Konrad Rzeszutek Wilk where appropiate. When constructing Debian related items we should be using the DebianMirrorProxy instead of all catch HttpProxy. Or alternatively support the case where are no HttProxy at all. Signed-off-by: Konrad Rzeszutek Wilk --- mg-debian-installer-update | 4 ++-- mgi-common | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mg-debian-installer-update b/mg-debian-installer-update index 38ae782..84127ad 100755 --- a/mg-debian-installer-update +++ b/mg-debian-installer-update @@ -64,8 +64,8 @@ dstroot=`getconfig TftpPath`/`getconfig TftpDiBase`/ date=`date +%Y-%m-%d` dst=$arch/$date-$suite -case "`getconfig HttpProxy`" in -?*) export http_proxy=`getconfig HttpProxy` ;; +case "`getconfig DebianMirrorProxy`" in +?*) export http_proxy=`getconfig DebianMirrorProxy` ;; esac cd $dstroot diff --git a/mgi-common b/mgi-common index 8a2c2d9..45cae69 100644 --- a/mgi-common +++ b/mgi-common @@ -27,7 +27,7 @@ fetch () { # and (2) if we are explicitly using a proxy to avoid getting # stale data (bearing in mind that we run this interactively only) : ${mg_update_proxy=$( - cd $mg_update_org_pwd && getconfig HttpProxy + cd $mg_update_org_pwd && getconfig DebianMirrorProxy )} curl -s -H 'Pragma: no-cache' \ ${mg_update_proxy+-x} ${mg_update_proxy} \