blob: 43f4388ce68deaf2fd07d94fc67ad70ac4bae3e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#
# set +o errexit -o noglob -o nounset is assumed.
#
pkg_fetch_download() {
if [ "${ARG_FETCH_FORCE:-}" != "offline" ]; then
if [ -n "${PKG_URL:-}" ]; then
if ! rtl_fetch_url_wget \
"${PKG_URL}" "${PKG_SHA256SUM}" "${BUILD_DLCACHEDIR}"\
"${PKG_FNAME}" "${PKG_NAME}" "${PKG_MIRRORS:-}"; then
return 1;
fi;
fi;
if [ -n "${PKG_URLS_GIT:-}" ]; then
if ! rtl_fetch_urls_git \
"${BUILD_DLCACHEDIR}" "${DEFAULT_GIT_ARGS}" "${PKG_BASE_DIR}"\
"${PKG_NAME}" "${PKG_MIRRORS_GIT:-}" ${PKG_URLS_GIT}; then
return 1;
fi;
fi;
fi;
};
# vim:filetype=sh
|