From 944ee949d4a7b548c5586fe144b33903e9b5b63f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 24 Jun 2019 15:05:55 +0200 Subject: bin/build-packages: clean up haskell-* logic of :without_check: straw --- bin/build-packages | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/bin/build-packages b/bin/build-packages index 488d49f..0428488 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -67,6 +67,8 @@ usage() { >&2 echo 'known straws (separated by and enclosed in ":", sets of straws separated by " "):' >&2 echo ' :clean_chroot:' >&2 echo ' clean the chroot before building' + >&2 echo ' :haskell_without_check:' + >&2 echo ' try with :without_check: iff this is a haskell-*, python-* or python2-* package' >&2 echo ' :mirrored_source:' >&2 echo ' compile from source tarbal from sources.archlinux.org if possible' >&2 echo ' :mirrored_source_by_hash:' @@ -299,14 +301,6 @@ while [ "${count}" -ne 0 ] && \ exit 2 fi - if [ -z "${forced_straws}" ] && \ - printf '%s\n' "${package}" | \ - grep -q '^\(haskell\|python2\?\)-'; then - haskell_straws=':without_check:' - else - haskell_straws='' - fi - if [ "${git_revision##*-}" = 'HEAD' ]; then git_revision=$( repo_name="${git_revision%-*}" @@ -410,12 +404,21 @@ while [ "${count}" -ne 0 ] && \ "${base_dir}/bin/ping-to-master" "$$" "${tmp_dir}" & fi success=false - for straw in ${straws_that_might_repair_failing_builds} ${haskell_straws}; do + for straw in ${straws_that_might_repair_failing_builds}; do if ${success}; then break fi + if echo "${straw}" | \ + grep -qF ':haskell_without_check:'; then + if ! printf '%s\n' "${package}" | \ + grep -q '^\(haskell\|python2\?\)-'; then + continue + fi + straw="${straw}:without_check:" + fi + echo 'preparing' > "${tmp_dir}/.ping-build-master" outerParameters="-r ${archbuild_chroots}" -- cgit v1.2.3-54-g00ecf