summaryrefslogtreecommitdiff
path: root/bin/why_dont_you
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-03 13:30:22 +0200
committerErich Eckner <git@eckner.net>2017-07-03 13:30:22 +0200
commitaaf939de0b87febfc0e5e6f2956c2a6d6ad0f924 (patch)
treef90e014919797fa9f98c569517be996013a3e59e /bin/why_dont_you
parent5284c12274f0d81dc2fac978cc703072897696fd (diff)
downloadbuilder-aaf939de0b87febfc0e5e6f2956c2a6d6ad0f924.tar.xz
bin/why_dont_you: bugfixes
Diffstat (limited to 'bin/why_dont_you')
-rwxr-xr-xbin/why_dont_you12
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