summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-01-27 14:12:54 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-01-27 14:12:54 +0000
commit54ee590a2840e5f8bd9124ed3d31ef3284141bda (patch)
tree3e90a4c960dc9d98185b4a66f733e3ab0bb9534e /subr
parent539deca82561c903b104cb2495e29367d5bf5b67 (diff)
downloadmidipix_build-54ee590a2840e5f8bd9124ed3d31ef3284141bda.tar.bz2
midipix_build-54ee590a2840e5f8bd9124ed3d31ef3284141bda.tar.xz
subr/ex_rtl_fetch.subr:ex_rtl_fetch_url_wget(): clarify hash mismatch error message.
Diffstat (limited to 'subr')
-rw-r--r--subr/ex_rtl_fetch.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/subr/ex_rtl_fetch.subr b/subr/ex_rtl_fetch.subr
index 13d4d848..086a7954 100644
--- a/subr/ex_rtl_fetch.subr
+++ b/subr/ex_rtl_fetch.subr
@@ -40,7 +40,7 @@ ex_rtl_fetch_urls_git() {
# N.B. URLs ($1) may contain `?' or '&' characters.
ex_rtl_fetch_url_wget() {
- local _url="${1}" _sha256sum_src="${2}";
+ local _url="${1}" _sha256sum_src="${2}" _sha256sum_dst="";
if [ -z "${3}" ]; then
_url_dst="${BUILD_DLCACHEDIR}/$(ex_rtl_basename "${_url}")";
else
@@ -54,7 +54,7 @@ ex_rtl_fetch_url_wget() {
if [ -n "${_sha256sum_src}" ]; then
set -- $(openssl dgst -sha256 "${_url_dst}"); shift $((${#}-1));
if [ "${_sha256sum_dst:=${1}}" != "${_sha256sum_src}" ]; then
- ex_rtl_log_msg failexit "Error: hash mismatch for URL \`${_url}' (is: ${_sha256sum_dst}, should be: ${_sha256sum_src}.)";
+ ex_rtl_log_msg failexit "Error: hash mismatch for URL \`${_url}' (downloaded file: ${_sha256sum_dst}, from build variables: ${_sha256sum_src}.)";
fi;
fi;
touch "${_url_dst}.fetched";