diff options
author | Erich Eckner <git@eckner.net> | 2017-08-02 11:34:47 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-02 11:34:47 +0200 |
commit | 81769e9553930756241ccc6f360bff089eb1d169 (patch) | |
tree | 9bff08e88f84fded598670e545076400e6e82d41 /bin/show-dependencies | |
parent | 471aac0e751cb2c85ddd0682fde000e9f4406a58 (diff) | |
download | builder-81769e9553930756241ccc6f360bff089eb1d169.tar.xz |
new config variable "webserver_directory" replaces "graphs_directory"
Diffstat (limited to 'bin/show-dependencies')
-rwxr-xr-x | bin/show-dependencies | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies index 6c1d80f..fd7bf97 100755 --- a/bin/show-dependencies +++ b/bin/show-dependencies @@ -17,12 +17,12 @@ if [ $# -eq 0 ]; then "$0" ${broken} || \ exit $? ( - ls "${graphs_directory}" + ls "${webserver_directory}/graphs" printf '%s.png\n' ${broken} ${broken} ) | \ sort | \ uniq -u | \ - sed "s|^|${graphs_directory}/|" | \ + sed "s|^|${webserver_directory}/graphs/|" | \ xargs -r rm exit fi @@ -85,7 +85,7 @@ ls "${work_dir}/package-infos" | \ for target_package in "$@"; do - output="${graphs_directory}/${target_package}.png" + output="${webserver_directory}/graphs/${target_package}.png" grep " $(str_to_regex "${target_package}")\$" "${tmp_dir}/original-build-order" | \ sort -u > \ @@ -227,7 +227,7 @@ for target_package in "$@"; do if [ "${line_count}" -gt 500 ]; then sed -i '/"base\(-devel\)\?"/d' "${tmp_dir}/input" line_count="$(wc -l < "${tmp_dir}/input")" - if [ "${line_count}" -gt 600 ]; then + if [ "${line_count}" -gt 700 ]; then rm -f "${output}" >&2 printf 'Skipping graph for "%s" - would be too big (%d).\n' \ "${target_package}" \ |