diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-09-25 17:27:55 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-09-25 17:27:55 +0100 |
commit | 69f2b7e9af3778c24bf52fa7eb0cdbbab643b20a (patch) | |
tree | f914245e33ee02e67b80fea9b345ff099f03c4b3 | |
parent | 725b2041981e2e445233ab8a890aa9638503814d (diff) | |
download | midipix_build-69f2b7e9af3778c24bf52fa7eb0cdbbab643b20a.tar.bz2 midipix_build-69f2b7e9af3778c24bf52fa7eb0cdbbab643b20a.tar.xz |
subr/rtl_fetch.subr:rtl_fetch_url_wget(): updated.
-rw-r--r-- | subr/rtl_fetch.subr | 10 |
1 files changed, 5 insertions, 5 deletions
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)"\ |