From 69f2b7e9af3778c24bf52fa7eb0cdbbab643b20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Fri, 25 Sep 2020 17:27:55 +0100 Subject: subr/rtl_fetch.subr:rtl_fetch_url_wget(): updated. --- subr/rtl_fetch.subr | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'subr') diff --git a/subr/rtl_fetch.subr b/subr/rtl_fetch.subr index 7e3fcced..d0ad54b0 100644 --- a/subr/rtl_fetch.subr +++ b/subr/rtl_fetch.subr @@ -54,7 +54,7 @@ rtl_fetch_urls_git() { # N.B. URLs ($1) may contain `?' or '&' characters. rtl_fetch_url_wget() { local _urls="${1}" _sha256sum_src="${2}" _target_fname="${3}" _rc=0 _target_fname_full=""\ - _url="" _urls_count=0 RTL_CHECK_DIGEST_DIGEST=""; + _url="" _urls_count=0; if [ "${ARG_FETCH_FORCE}" = "offline" ]; then return 0; else _urls_count="$(rtl_llength "${_urls}")"; @@ -88,11 +88,11 @@ rtl_fetch_url_wget() { rtl_log_msg fatalexit "Error: failed to acquire fetching lock for URL \`%s'." "${_url}"; fi; ;; 2) if [ "${_urls_count}" -ge 1 ]; then - rtl_log_msg warning "Warning: hash mismatch for URL \`%s', retrying with alternative URL... (downloaded file: %s, from build variables: %s.)"\ - "${_url}" "${RTL_CHECK_DIGEST_DIGEST}" "${_sha256sum_src}"; + rtl_log_msg warning "Warning: hash mismatch for URL \`%s', retrying with alternative URL... (from build variables: %s.)"\ + "${_url}" "${_sha256sum_src}"; else - rtl_log_msg fatalexit "Error: hash mismatch for URL \`%s' (downloaded file: %s, from build variables: %s.)"\ - "${_url}" "${RTL_CHECK_DIGEST_DIGEST}" "${_sha256sum_src}"; + rtl_log_msg fatalexit "Error: hash mismatch for URL \`%s' (from build variables: %s.)"\ + "${_url}" "${_sha256sum_src}"; fi; ;; *) if [ "${_urls_count}" -ge 1 ]; then rtl_log_msg warning "Warning: failed to fetch URL \`%s', retrying with alternative URL... (wget(1) exit status: %s)"\ -- cgit v1.2.3