Skip to content

Commit

Permalink
Make curl follow redirects, fixes 'make bootstrap-pkg-*'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson authored and alex-konovalov committed Mar 25, 2020
1 parent 3f70a0b commit cc24e6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions etc/ci-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ fi
time "$SRCDIR/configure" --enable-Werror $CONFIGFLAGS
time make V=1 -j4

# download packages; instruct wget to retry several times if the
# download packages; instruct curl to retry several times if the
# connection is refused, to work around intermittent failures
DOWNLOAD="curl --retry 5 --retry-delay 5 -O"
DOWNLOAD="curl -L --retry 5 --retry-delay 5 -O"
if [[ $(uname) == Darwin ]]
then
# Travis OSX builders seem to have very small download bandwidth,
Expand Down
2 changes: 1 addition & 1 deletion etc/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -e

# check whether curl is available, and if so, delegate to it
command -v curl >/dev/null 2>&1 && exec curl -O "$@"
command -v curl >/dev/null 2>&1 && exec curl -L -O "$@"

# check whether wget is available, and if so, delegate to it
command -v wget >/dev/null 2>&1 && exec wget -N "$@"
Expand Down

0 comments on commit cc24e6a

Please sign in to comment.