public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1 of 1] scrips/functions: fix downloads using curl
  2010-01-10 15:33 [PATCH 0 of 1] Fix curl downloads Richard Strand
@ 2010-01-10 15:33 ` Richard Strand
  2010-01-10 16:17   ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Strand @ 2010-01-10 15:33 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

# HG changeset patch
# User Richard Strand <richard.strand@icomera.com>
# Date 1263136765 0
# Node ID c4d713e87503f1c3c536e9a836c5cc5cc66f33d5
# Parent  5d693a13c84abf6a00275dfb1413834056e000c0
scrips/functions: fix downloads using curl

By default curl doesn't folow redirects. This breaks sourceforge downloads.
Add the -L option to curl to fix this.

Curl also downloads the html as a file even when it gets a 404. This breaks
http downloads when using the failback system. Add the -f option to curl to fix
this.

Signed-off-by: Richard Strand <richard.strand@icomera.com>

diff -r 5d693a13c84a -r c4d713e87503 scripts/functions
--- a/scripts/functions	Fri Jan 08 18:48:21 2010 +0000
+++ b/scripts/functions	Sun Jan 10 15:19:25 2010 +0000
@@ -343,8 +343,8 @@
     # Note: comments about wget method (above) are also valid here
     # Plus: no good progress indicator is available with curl,
     #       so, be silent.
-    CT_DoExecLog ALL curl -s --ftp-pasv -O --retry 3 "$1" --connect-timeout ${CT_CONNECT_TIMEOUT}    \
-    || CT_DoExecLog ALL curl -s -O --retry 3 "$1" --connect-timeout ${CT_CONNECT_TIMEOUT}            \
+    CT_DoExecLog ALL curl -s --ftp-pasv -O --retry 3 "$1" --connect-timeout ${CT_CONNECT_TIMEOUT} -L -f  \
+    || CT_DoExecLog ALL curl -s -O --retry 3 "$1" --connect-timeout ${CT_CONNECT_TIMEOUT} -L -f          \
     || true
 }
 

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 0 of 1] Fix curl downloads
@ 2010-01-10 15:33 Richard Strand
  2010-01-10 15:33 ` [PATCH 1 of 1] scrips/functions: fix downloads using curl Richard Strand
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Strand @ 2010-01-10 15:33 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

Hi Yann, All,

HTTP file downloads currently don't work correctly using curl if they get a
redirect or a 404.

This patch fixes this problem.

Regards,

Richard Strand

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1 of 1] scrips/functions: fix downloads using curl
  2010-01-10 15:33 ` [PATCH 1 of 1] scrips/functions: fix downloads using curl Richard Strand
@ 2010-01-10 16:17   ` Yann E. MORIN
  0 siblings, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2010-01-10 16:17 UTC (permalink / raw)
  To: crossgcc; +Cc: Richard Strand

Richard,
All,

On Sunday 10 January 2010 16:32:42 Richard Strand wrote:
> # HG changeset patch
> # User Richard Strand <richard.strand@icomera.com>
> # Date 1263136765 0
> # Node ID c4d713e87503f1c3c536e9a836c5cc5cc66f33d5
> # Parent  5d693a13c84abf6a00275dfb1413834056e000c0
> scrips/functions: fix downloads using curl

Applied as 3995b34ba925. Thank you!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-10 16:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-10 15:33 [PATCH 0 of 1] Fix curl downloads Richard Strand
2010-01-10 15:33 ` [PATCH 1 of 1] scrips/functions: fix downloads using curl Richard Strand
2010-01-10 16:17   ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).