aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ali Polatel <polatel@gmail.com> 2009-02-26 03:36:16 +0200
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-26 14:30:05 +0000
commit5792dd3cc81e6099ca98a6c7d76183aee6f3d596 (patch)
tree30cfe68e47062c9a4fbe2d6f005877fcd59f0d54
parentf87d8444fe0862c1e575d2732ea42bb1c9318e5a (diff)
downloadpaludis-5792dd3cc81e6099ca98a6c7d76183aee6f3d596.tar.gz
paludis-5792dd3cc81e6099ca98a6c7d76183aee6f3d596.tar.xz
Add -L to make curl follow redirects
-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 e35314a..e5ac38f 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 --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 ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -C - -o "${2}".-PARTIAL- "${1}" 1>&2
+ if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -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 --fail -o "${2}" "${1}" 1>&2
- if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -o "${2}" "${1}" ; then
+ echo ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -o "${2}" "${1}" 1>&2
+ if ${CURL_WRAPPER} ${LOCAL_CURL:-curl} ${EXTRA_CURL} --connect-timeout 30 --retry 1 --fail -L -o "${2}" "${1}" ; then
exit 0
else
rm -f "${2}"