aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ali Polatel <polatel@gmail.com> 2009-02-23 01:55:59 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-22 23:58:32 +0000
commit6461b4c85e2eac28e49af19517e3a6d2ee9fd0e8 (patch)
tree21d9e3ca1725fea8ac56ae6ba298af6dc5faaf2e
parentc2c85dbb5cdc66a7503f58d2545c457968a0c10e (diff)
downloadpaludis-6461b4c85e2eac28e49af19517e3a6d2ee9fd0e8.tar.gz
paludis-6461b4c85e2eac28e49af19517e3a6d2ee9fd0e8.tar.xz
Add --fail to curl options to better deal with failed attempts
-rwxr-xr-xpaludis/fetchers/demos/docurl8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/fetchers/demos/docurl b/paludis/fetchers/demos/docurl
index 4b736e9..e35314a 100755
--- a/paludis/fetchers/demos/docurl
+++ b/paludis/fetchers/demos/docurl
@@ -29,8 +29,8 @@ if [[ -n "${PALUDIS_USE_SAFE_RESUME}" ]] ; then
fi
fi
- echo ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 -C - -o "${2}".-PARTIAL- "${1}" 1>&2
- if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 -C - -o "${2}".-PARTIAL- "${1}" ; then
+ echo ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -C - -o "${2}".-PARTIAL- "${1}" 1>&2
+ if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -C - -o "${2}".-PARTIAL- "${1}" ; then
echo mv -f "${2}".-PARTIAL- "${2}"
mv -f "${2}".-PARTIAL- "${2}"
exit 0
@@ -40,8 +40,8 @@ if [[ -n "${PALUDIS_USE_SAFE_RESUME}" ]] ; then
fi
else
- echo ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 -o "${2}" "${1}" 1>&2
- if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 -o "${2}" "${1}" ; then
+ echo ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -o "${2}" "${1}" 1>&2
+ if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -o "${2}" "${1}" ; then
exit 0
else
rm -f "${2}"