index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
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 | |
parent | 7b12fd3b9be90d264ca2749f91a497eebba06eeb (diff) |
-rwxr-xr-x | bin/show-dependencies | 29 |
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} |