diff options
author | Erich Eckner <git@eckner.net> | 2017-08-07 15:57:14 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-07 15:57:14 +0200 |
commit | 63e66a8cc4e5af29cc9d7233b8034276b9e338a3 (patch) | |
tree | ca6386731afa0c0e4b04143b70729163b9943fd5 /bin/show-dependencies | |
parent | 7b12fd3b9be90d264ca2749f91a497eebba06eeb (diff) | |
download | builder-63e66a8cc4e5af29cc9d7233b8034276b9e338a3.tar.xz |
bin/show-dependencies: keep all graphs of packages still on the build-list
Diffstat (limited to 'bin/show-dependencies')
-rwxr-xr-x | bin/show-dependencies | 29 |
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} |