summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_fetch_download.subr
blob: 8e1d193b952e7f80b57d18e460780598cc2e2bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# set +o errexit -o noglob is assumed.
#

pkg_fetch_download() {
	if [ -n "${PKG_URL}" ]; then
		ex_rtl_fetch_url_wget "${PKG_URL}" "${PKG_SHA256SUM}" "${PKG_FNAME}" || return "${?}";
	fi;
	if [ -n "${PKG_URLS_GIT}" ]; then
		ex_rtl_fetch_urls_git "${PKG_BASE_DIR}" ${PKG_URLS_GIT} || return "${?}";
	fi;
};

# vim:filetype=sh