From aaf939de0b87febfc0e5e6f2956c2a6d6ad0f924 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 3 Jul 2017 13:30:22 +0200 Subject: bin/why_dont_you: bugfixes --- bin/why_dont_you | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2