summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-01-22 14:19:49 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-01-22 14:19:49 +0000
commit1bd15efef1dfe0fff29a448fb719b5dfc2a0e861 (patch)
tree4b1206faf2a08858dd1a5fd993e4425a825aa871 /subr
parent15563993a0b8ebfcf663a8a99566ee0d6e6091a2 (diff)
downloadmidipix_build-1bd15efef1dfe0fff29a448fb719b5dfc2a0e861.tar.bz2
midipix_build-1bd15efef1dfe0fff29a448fb719b5dfc2a0e861.tar.xz
Implements ${{DEFAULT,PKG,...}_MIRRORS}.
build.sh:build(): define and zero-initialise ${DEFAULT_MIRRORS}. etc/README.md: updated. midipix.env: adds ${DEFAULT_MIRRORS} (https://midipix.org/mirror/ https://midipix.lucioillanes.de/archives/). subr.rtl/rtl_fetch.subr:rtl_fetch_url_wget(): receive and operate on target name and optional list of mirrors. subr/pkg_fetch_download.subr: additionally pass ${PKG_NAME} and ${PKG_MIRRORS} to rtl_fetch_url_wget().
Diffstat (limited to 'subr')
-rw-r--r--subr/pkg_fetch_download.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/subr/pkg_fetch_download.subr b/subr/pkg_fetch_download.subr
index 57cad8be..bfe358f6 100644
--- a/subr/pkg_fetch_download.subr
+++ b/subr/pkg_fetch_download.subr
@@ -4,7 +4,7 @@
pkg_fetch_download() {
if [ -n "${PKG_URL:-}" ]; then
- if ! rtl_fetch_url_wget "${PKG_URL}" "${PKG_SHA256SUM}" "${PKG_FNAME}"; then
+ if ! rtl_fetch_url_wget "${PKG_URL}" "${PKG_SHA256SUM}" "${PKG_FNAME}" "${PKG_NAME}" "${PKG_MIRRORS}"; then
return 1;
fi;
fi;