index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-20 09:01:35 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-20 09:01:35 +0200 |
commit | 05e3561b3df4078a33865913d8135dbfe4ad5809 (patch) | |
tree | 9afde5a0c4d87187cc6e193c3666eb77a6a9a4cd /bin/why_dont_you | |
parent | 797adfe1c1f26c57d31bc7b1b67e54d36257806f (diff) |
-rwxr-xr-x | bin/why_dont_you | 13 |
diff --git a/bin/why_dont_you b/bin/why_dont_you index aaa7df5..2c4d43e 100755 --- a/bin/why_dont_you +++ b/bin/why_dont_you @@ -23,15 +23,16 @@ case "${action}" in continue fi - if package_locked_broken_or_blocked "${package}" "${git_revision}" "${mod_git_revision}" "${repository}"; then - echo 'is locked, broken or blocked' + if package_locked_or_blocked "${package}" "${git_revision}" "${mod_git_revision}" "${repository}"; then + echo 'is locked or blocked' continue fi if [ -n "$( ( cat "${work_dir}/package-infos/${package}.${git_revision}.${mod_git_revision}.needs" - awk '{print $1 "." $2 "." $3}' "${work_dir}/build-list" | \ + grep -vxF 'break_loops' "${work_dir}/build-list" | \ + awk '{print $1 "." $2 "." $3}' | \ sed " s|^|${work_dir}/package-infos/| s|\$|\.builds| @@ -45,7 +46,8 @@ case "${action}" in echo 'has unmet dependencies:' ( cat "${work_dir}/package-infos/${package}.${git_revision}.${mod_git_revision}.needs" - awk '{print $1 "." $2 "." $3}' "${work_dir}/build-list" | \ + grep -vxF 'break_loops' "${work_dir}/build-list" | \ + awk '{print $1 "." $2 "." $3}' | \ sed " s|^|${work_dir}/package-infos/| s|\$|\.builds| @@ -95,7 +97,8 @@ case "${action}" in build_list_items_file="$(mktemp)" dependent_packages_file="$(mktemp)" - awk '{print $1 "." $2 "." $3 " " $4}' "${work_dir}/build-list" | \ + grep -vxF 'break_loops' "${work_dir}/build-list" | \ + awk '{print $1 "." $2 "." $3 " " $4}' | \ sort -u > \ "${build_list_items_file}" |