get_sources: Follow redirects

This is general best practice, and would have avoided the
need for 696c29f5c9
(I tested with that commit reverted)
This commit is contained in:
Colin Walters 2016-12-14 10:29:17 -05:00 committed by Johnny Hughes
parent bd83a7926b
commit 552ca48e93

View file

@ -212,7 +212,7 @@ while read -r fsha fname ; do
for br in "${branches[@]}"
do
br=$(echo ${br}| sed -e s'|remotes/origin/||')
curl ${QUIET} -f "${SURL}/${pn}/${br}/${fsha}" -o "${fname}" && break
curl -L ${QUIET} -f "${SURL}/${pn}/${br}/${fsha}" -o "${fname}" && break
done
else
echo "${fname} exists. skipping"