summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-12-14 16:30:13 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-12-14 16:45:25 +0100
commita0561a397b5e543658a7adb76c822fd2327698e9 (patch)
tree3c93f70d3092769901076e3fc5e8966d13be64c0 /subr
parentfcfccc538d0a1c47fc4870ac61be640dfe403330 (diff)
downloadmidipix_build-a0561a397b5e543658a7adb76c822fd2327698e9.tar.bz2
midipix_build-a0561a397b5e543658a7adb76c822fd2327698e9.tar.xz
Updates file, libz, npth, Xproto, xtrans, libX11, Xrender, dash, diffutils, dos2unix, gawk, grep, make, man-db, mksh, openssh, patch, tar, The Silver Searcher, whois, and zsh.
build.sh, etc/build.usage: adds -i (ignore SHA256 hash mismatches.) build.sh, build/pkg.build, subr/pkg.subr: skip `clean' build target unless explicitly specified. patches/man-db-2.7.6.1.local.patch: added.
Diffstat (limited to 'subr')
-rw-r--r--subr/pkg.subr22
1 files changed, 16 insertions, 6 deletions
diff --git a/subr/pkg.subr b/subr/pkg.subr
index 0654c4aa..315bbfdd 100644
--- a/subr/pkg.subr
+++ b/subr/pkg.subr
@@ -17,7 +17,11 @@ fetch() {
if [ -n "${_f_sha256sum_src}" ]; then
set -- $(openssl dgst -sha256 ${_f_url_dst}); shift $((${#}-1));
if [ "${_f_sha256sum_dst:=${1}}" != "${_f_sha256sum_src}" ]; then
- log_msg failexit "Error: hash mismatch for URL \`${_f_url}' (is: ${_f_sha256sum_dst}, should be: ${_f_sha256sum_src}.)";
+ if [ ${ARG_IGNORE_SHA256SUMS:-0} -eq 0 ]; then
+ log_msg failexit "Error: hash mismatch for URL \`${_f_url}' (is: ${_f_sha256sum_dst}, should be: ${_f_sha256sum_src}.)";
+ else
+ log_msg warn "Warning: hash mismatch for URL \`${_f_url}' (is: ${_f_sha256sum_dst}, should be: ${_f_sha256sum_src}.)";
+ fi;
fi;
fi;
touch ${_f_url_dst}.fetched;
@@ -47,13 +51,19 @@ fetch_git() {
is_build_script_done() {
if [ "${1}" != "clean" ]\
&& [ "${ARG_RESTART}" = "ALL" ]; then
- return 1; # Build
+ return 1; # Build
elif match_list "${ARG_RESTART}" , ${BUILD_PACKAGE_LC}; then
- if [ -n "${ARG_RESTART_AT}" ] \
- && ! match_list "${ARG_RESTART_AT}" , "${1}"; then
- return 0; # Skip
+ if [ -n "${ARG_RESTART_AT}" ]; then
+ if [ "${1}" != "clean" ]\
+ && [ "${ARG_RESTART_AT}" = "ALL" ]; then
+ return 1; # Build
+ elif match_list "${ARG_RESTART_AT}" , "${1}"; then
+ return 1; # Build
+ else
+ return 0; # Skip
+ fi;
else
- return 1; # Build
+ return 1; # Build
fi;
elif [ -f ${WORKDIR}/.${2:-${BUILD_PACKAGE_LC}}.${1} ]; then
return 0; # Skip