From 79e1a0c571f5f434fd05bf5622a7eddf71e6f449 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 6 Jul 2013 00:55:00 -0400 Subject: [PATCH] Pass -f to curl when downloading a file with it, so it propigates failure. --- Utility/Url.hs | 3 ++- debian/changelog | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Utility/Url.hs b/Utility/Url.hs index e08266a76d..c8020c814f 100644 --- a/Utility/Url.hs +++ b/Utility/Url.hs @@ -116,7 +116,8 @@ download' quiet url headers options file = - the remainder to download as the whole file, - and not indicating how much percent was - downloaded before the resume. -} - curl = go "curl" $ headerparams ++ quietopt "-s" ++ [Params "-L -C - -# -o"] + curl = go "curl" $ headerparams ++ quietopt "-s" ++ + [Params "-f -L -C - -# -o"] go cmd opts = boolSystem cmd $ options++opts++[File file, File url] quietopt s diff --git a/debian/changelog b/debian/changelog index 1fc79b0b1c..740f34ed54 100644 --- a/debian/changelog +++ b/debian/changelog @@ -18,6 +18,7 @@ git-annex (4.20130628) UNRELEASED; urgency=low * addurl --pathdepth: Fix failure when the pathdepth specified is deeper than the urls's path. * Windows: Look for .exe extension when searching for a command in path. + * Pass -f to curl when downloading a file with it, so it propigates failure. -- Joey Hess Tue, 02 Jul 2013 15:40:55 -0400