diff options
-rwxr-xr-x | bin/why_dont_you | 12 |
1 files changed, 9 insertions, 3 deletions
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 |