From 63e66a8cc4e5af29cc9d7233b8034276b9e338a3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 7 Aug 2017 15:57:14 +0200 Subject: bin/show-dependencies: keep all graphs of packages still on the build-list --- bin/show-dependencies | 29 +++++++++++++++++++++-------- 1 file 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} -- cgit v1.2.3-70-g09d2