summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorMichael L. Young <elgueromexicano@gmail.com>2017-02-22 14:08:05 -0500
committerMichael L. Young <elgueromexicano@gmail.com>2017-02-22 15:53:54 -0600
commit1cf1acb51ac16557aad76d9597f2c8314d1cda73 (patch)
treeb8c0facfa1a99858bdb55ef60446207c20aacd52 /build_tools
parent3175d1b65fb66436816aa0eb8870d0ade41c8071 (diff)
build_tools: Fix download_externals to allow the use of curl or wget
Not sure if this is really a bug versus an improvement. I can see it being viewed as a bug though by some. The current build_tools/download_externals file depends on wget in order to download external modules. The current build system is able to discover which tool to use for fetching remote files - either wget or curl. This patch takes advantage of this capability by modifying the two calls to the wget binary to instead use what was discovered by the build system. ASTERISK-26812 #close Change-Id: If9411a2554f009274d377445613ae91192d948a1
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/download_externals4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_tools/download_externals b/build_tools/download_externals
index d2e2e4fff..b0a414ed1 100755
--- a/build_tools/download_externals
+++ b/build_tools/download_externals
@@ -103,7 +103,7 @@ version_convert() {
echo ${v}
}
-${WGET} -q -O ${tmpdir}/${variant_manifest} ${remote_url}/${variant_manifest} || {
+${DOWNLOAD_TO_STDOUT} ${remote_url}/${variant_manifest} > ${tmpdir}/${variant_manifest} || {
echo "${full_name}: Unable to fetch ${remote_url}/${variant_manifest}"
exit 1
}
@@ -188,7 +188,7 @@ fi
if [[ ${need_download} = 1 ]] ; then
echo "${full_name}: Downloading ${remote_url}/${tarball}"
- ${WGET} -q -O ${cache_dir}/${tarball} ${remote_url}/${tarball} || {
+ ${DOWNLOAD_TO_STDOUT} ${remote_url}/${tarball} > ${cache_dir}/${tarball} || {
echo "${full_name}: Unable to fetch ${remote_url}/${tarball}"
exit 1
}