From 54ee590a2840e5f8bd9124ed3d31ef3284141bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sat, 27 Jan 2018 14:12:54 +0000 Subject: subr/ex_rtl_fetch.subr:ex_rtl_fetch_url_wget(): clarify hash mismatch error message. --- subr/ex_rtl_fetch.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subr') 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"; -- cgit v1.2.3