Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-07 15:57:14 +0200
committerErich Eckner <git@eckner.net>2017-08-07 15:57:14 +0200
commit63e66a8cc4e5af29cc9d7233b8034276b9e338a3 (patch)
treeca6386731afa0c0e4b04143b70729163b9943fd5
parent7b12fd3b9be90d264ca2749f91a497eebba06eeb (diff)
bin/show-dependencies: keep all graphs of packages still on the build-list
-rwxr-xr-xbin/show-dependencies29
1 files changed, 21 insertions, 8 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index 4db1864..c0f298a 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -6,16 +6,29 @@
if [ $# -eq 0 ]; then
broken=$(
- ls "${work_dir}/package-states" | \
- grep '\.broken$'
- )
- broken=$(
- echo "${broken}" | \
- sed 's|\(\.[^.]\+\)\{4\}$||' | \
+ (
+ ls "${work_dir}/package-states" | \
+ grep '\.broken$' | \
+ sed 's|\(\.[^.]\+\)\{4\}$||'
+ (
+ ls "${webserver_directory}/graphs" | \
+ sed 's|\.png$||'
+ (
+ awk '{print $1}' < \
+ "${work_dir}/build-list"
+ cat "${work_dir}/deletion-list"
+ ) | \
+ sort -u
+ ) | \
+ sort | \
+ uniq -d
+ ) | \
sort -u
)
- "$0" ${broken} || \
- exit $?
+ if [ -n "${broken}" ]; then
+ "$0" ${broken} || \
+ exit $?
+ fi
(
ls "${webserver_directory}/graphs"
printf '%s.png\n' ${broken} ${broken}