From 54ee590a2840e5f8bd9124ed3d31ef3284141bda Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Jan 27 2018 14:12:54 +0000 Subject: subr/ex_rtl_fetch.subr:ex_rtl_fetch_url_wget(): clarify hash mismatch error message. --- diff --git a/subr/ex_rtl_fetch.subr b/subr/ex_rtl_fetch.subr index 13d4d84..086a795 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";