From patchwork Sat May 10 02:07:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cody P Schafer X-Patchwork-Id: 347582 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 873AA14008A for ; Sat, 10 May 2014 12:07:36 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to; q= dns; s=default; b=DD/Xewm+mu2x3x4+mKZ+HaWs7jspHlT2ap2Eq4dAGhA/U5 RPwWgalJqLdkl18sTJRyvnN7m5fmL6aZvFGhpo7JN9wSB61gchpKpHne3cUVVwMf PE83WmomCuh13FzaSoW0e6IwdvSLbqa3rdOZP0gMKRvarXNEZM+Yl2NOkP4fU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to; s= default; bh=/x9ttOm1elxOqCj9d/YTuWcX3Zk=; b=kr9nkljfajqvhr9sHPgJ wYZZBWluRGFxhlCOO1Zt7fgixrrfYE5sj+npZKr68x6Z9RNhw1sCbrUyzP1ABZSN dWOyoGVm5GY/Z+lLuakX8xz2ov+HOEinYklFjVvBqUM7zTlC/DLFlJz8awOJkVgZ UACKSvsNiAjvwNZoSww3ak4= Received: (qmail 15842 invoked by alias); 10 May 2014 02:07:26 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 15292 invoked by uid 89); 10 May 2014 02:07:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00, SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: e7.ny.us.ibm.com Received: from e7.ny.us.ibm.com (HELO e7.ny.us.ibm.com) (32.97.182.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 10 May 2014 02:07:21 +0000 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 9 May 2014 22:07:19 -0400 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 9 May 2014 22:07:16 -0400 Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id BFABCC90026 for ; Fri, 9 May 2014 22:07:10 -0400 (EDT) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by b01cxnp22033.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4A27F9L4391306 for ; Sat, 10 May 2014 02:07:15 GMT Received: from d01av01.pok.ibm.com (localhost [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4A27FDA025188 for ; Fri, 9 May 2014 22:07:15 -0400 Received: from localdomain.local ([9.80.100.93]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s4A27E0K025168 for ; Fri, 9 May 2014 22:07:15 -0400 Received: by localdomain.local (Postfix, from userid 1000) id 0F8AD187048; Fri, 9 May 2014 19:07:13 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH] Allow '-1' to be specified as CONNECTION_TIMEOUT to disable the use of the connection timeout for wget X-Mercurial-Node: cb33f8c2cbaf802d4f04b602b1969bd30adeaae0 Message-Id: User-Agent: Mercurial-patchbomb/2.8.2+90-3a3731a60354 Date: Fri, 09 May 2014 19:07:12 -0700 From: Cody Schafer To: crossgcc@sourceware.org X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14051002-5806-0000-0000-000024D7BB6B # HG changeset patch # User Cody Schafer # Date 1399687622 25200 # Fri May 09 19:07:02 2014 -0700 # Node ID cb33f8c2cbaf802d4f04b602b1969bd30adeaae0 # Parent d13ded5cee5d4ce1dd18092606d96dc37aa32707 Allow '-1' to be specified as CONNECTION_TIMEOUT to disable the use of the connection timeout for wget Signed-off-by: Cody P Schafer --- For unsubscribe information see http://sourceware.org/lists.html#faq diff --git a/config/global/download.in b/config/global/download.in --- a/config/global/download.in +++ b/config/global/download.in @@ -47,6 +47,8 @@ Note that this value applies equally to wget if you have that installed. + If '-1' is specified, no timeout reconfiguration options are passed to wget/curl. + config ONLY_DOWNLOAD bool prompt "Stop after downloading tarballs" diff --git a/scripts/functions b/scripts/functions --- a/scripts/functions +++ b/scripts/functions @@ -572,9 +572,14 @@ # not easy to detect them, so force a global ${CT_CONNECT_TIMEOUT}-second # timeout. # For curl, no good progress indicator is available. So, be silent. + if [ ${CT_CONNECT_TIMEOUT} = -1 ]; then + T= + else + T="-T ${CT_CONNECT_TIMEOUT}" + fi if CT_DoExecLog ALL wget --passive-ftp --tries=3 -nc \ --progress=dot:binary \ - -T ${CT_CONNECT_TIMEOUT} \ + ${T} \ -O "${tmp}" \ "${url}" then