From patchwork Mon Mar 17 14:58:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 26386 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0ABAE20143 for ; Mon, 17 Mar 2014 15:00:15 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id e16sf13484114qcx.10 for ; Mon, 17 Mar 2014 08:00:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=zjXXutxrXxnpkRG1Gp30tlTljlXjWx2AaCZ2VI9z8Gc=; b=f2IjLW8A9077cWCNPxNXb7ujn61BeJJpHf5a/LawgaBpb8jQCWrqKjKx13dDhUVU0/ ezsm+7QvtAsFMS/qzKuSl8BXlRre/S12koA2SVtS/bdMFoALuxQZdDVgicsOEoMY0sZU c5rcvLbk9l3WhViNWgSPQXGoCJwwzt6PIyWBc4wkjcHI0/F1eVpa0xGGSXMC/iyPdmsg 5QhSswdL3yOg1KviYsHgpROGys5Iu1BQz27iaRB419ZzteDMpzl1m2p2Yb37bapQaW2G FwuIiJpag/lv1f4GVQ3rWvElvohb5yYAJaoIQksR6gr0h70BjNnbuuX088yzU61s/XnQ UKng== X-Gm-Message-State: ALoCoQkXmOk7OWEUElVKe2zh/cNXFuVs6Pzl4xvCvmm90eSNR7BHDroGxwT37/ttktg7bEulfaz0 X-Received: by 10.58.171.135 with SMTP id au7mr10010380vec.22.1395068415792; Mon, 17 Mar 2014 08:00:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.117 with SMTP id 108ls1716097qgw.77.gmail; Mon, 17 Mar 2014 08:00:15 -0700 (PDT) X-Received: by 10.52.69.146 with SMTP id e18mr17030693vdu.15.1395068415698; Mon, 17 Mar 2014 08:00:15 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id m3si5334640vcr.98.2014.03.17.08.00.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 08:00:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id cz12so5705542veb.21 for ; Mon, 17 Mar 2014 08:00:15 -0700 (PDT) X-Received: by 10.52.34.4 with SMTP id v4mr400414vdi.42.1395068415580; Mon, 17 Mar 2014 08:00:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp133438vck; Mon, 17 Mar 2014 08:00:14 -0700 (PDT) X-Received: by 10.52.78.231 with SMTP id e7mr2981512vdx.28.1395068414050; Mon, 17 Mar 2014 08:00:14 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id yv5si2860660veb.188.2014.03.17.08.00.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 17 Mar 2014 08:00:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPZ0K-0003zP-VG; Mon, 17 Mar 2014 14:59:04 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPZ0J-0003z3-1G for xen-devel@lists.xen.org; Mon, 17 Mar 2014 14:59:03 +0000 Received: from [85.158.139.211:5619] by server-17.bemta-5.messagelabs.com id F4/E4-09046-6BD07235; Mon, 17 Mar 2014 14:59:02 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-10.tower-206.messagelabs.com!1395068340!1527206!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28682 invoked from network); 17 Mar 2014 14:59:01 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 17 Mar 2014 14:59:01 -0000 X-IronPort-AV: E=Sophos;i="4.97,670,1389744000"; d="scan'208";a="110734236" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 17 Mar 2014 14:59:01 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Mon, 17 Mar 2014 10:58:59 -0400 Received: from spare.cam.xci-test.com ([10.80.2.80] helo=kazak.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WPZ0F-00014g-AU; Mon, 17 Mar 2014 14:58:59 +0000 From: Ian Campbell To: Date: Mon, 17 Mar 2014 14:58:59 +0000 Message-ID: <1395068339-21719-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.8.5.2 MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST v2] TestSupport: Don't use git proxy for non-git:// or http urls. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: After this I was stymied by ssh host keys and other roadblocks and just pushed the branch to my xenbits tree but I think this is still correct as far as it goes. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v2: Also allow http:// and https:// --- Osstest/TestSupport.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index b2f0b22..b6a6fb5 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -997,7 +997,9 @@ sub file_simple_write_contents ($$) { sub git_massage_url ($) { my ($url) = @_; - if ($c{GitCacheProxy}) { $url = $c{GitCacheProxy}.$url; } + if ($url =~ m,^(git|https?)://, && $c{GitCacheProxy}) { + $url = $c{GitCacheProxy}.$url; + } return $url; }