index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-07-03 13:30:22 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-03 13:30:22 +0200 |
commit | aaf939de0b87febfc0e5e6f2956c2a6d6ad0f924 (patch) | |
tree | f90e014919797fa9f98c569517be996013a3e59e | |
parent | 5284c12274f0d81dc2fac978cc703072897696fd (diff) |
-rwxr-xr-x | bin/why_dont_you | 12 |
diff --git a/bin/why_dont_you b/bin/why_dont_you index ed91f56..ba43408 100755 --- a/bin/why_dont_you +++ b/bin/why_dont_you @@ -17,8 +17,8 @@ case "${action}" in grep "^$(str_to_regex "${pkg}") " "${work_dir}/build-list" | \ while read -r package git_revision mod_git_revision repository; do - if [ -f "${work_dir}/${package}.${git_revision}.${mod_git_revision}.${repository}.done" ] || - [ -f "${work_dir}/${package}.${git_revision}.${mod_git_revision}.${repository}.testing" ]; then + if [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.done" ] || + [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.testing" ]; then echo 'has been built' continue fi @@ -69,7 +69,13 @@ case "${action}" in continue fi - printf '"%s" would be built\n' "${pkg}" + if [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.broken" ]; then + printf '"%s" is broken (%sx built), but would be built\n' \ + "${pkg}" \ + "$(wc -l < "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.broken")" + else + printf '"%s" would be built\n' "${pkg}" + fi done done |