]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
configure: Don't use the progress bar with curl when downloading to stdout
authorMatt Jordan <mjordan@digium.com>
Tue, 14 Mar 2017 20:12:28 +0000 (15:12 -0500)
committerMatt Jordan <mjordan@digium.com>
Tue, 14 Mar 2017 20:14:04 +0000 (14:14 -0600)
In some scenarios, such as when there may not be a terminal (such as
inside a Docker container), curl will apparently direct the progress bar
to stdout. This can cause extra data to be appended to a file curl'd
down to stdout, resulting in md5 verification failures.

This patch removes the progress bar, and tells curl to download the file
silently.

ASTERISK-26872 #close

Change-Id: Ie860b020f627d4372b3e7ce9453de5faafeebe6c

configure
configure.ac

index a4caedb1e33ddc241f22c50c06668a86befbb1cc..d603503e3da18220a46d3c60bde66b90e89c9d51 100755 (executable)
--- a/configure
+++ b/configure
@@ -7901,7 +7901,7 @@ if test "${WGET}" != ":" ; then
   DOWNLOAD_TIMEOUT='--timeout=$1'
 else if test "${CURL}" != ":" ; then
   DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
-  DOWNLOAD_TO_STDOUT="${CURL} -L --progress-bar"
+  DOWNLOAD_TO_STDOUT="${CURL} -Ls"
   DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)'
 else
   # Extract the first word of "fetch", so it can be a program name with args.
index 039648a431087956f01865c1f40be84049e8cbaf..12f4a34ddaac740fb54a2bce5697665f95b687d4 100644 (file)
@@ -319,7 +319,7 @@ if test "${WGET}" != ":" ; then
   DOWNLOAD_TIMEOUT='--timeout=$1'
 else if test "${CURL}" != ":" ; then
   DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
-  DOWNLOAD_TO_STDOUT="${CURL} -L --progress-bar"
+  DOWNLOAD_TO_STDOUT="${CURL} -Ls"
   DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)'
 else
   AC_PATH_PROG([FETCH], [fetch], [:])