From 471aac0e751cb2c85ddd0682fde000e9f4406a58 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 2 Aug 2017 11:28:03 +0200 Subject: bin/show-dependencies: reduce large graphs by ignoring base and base-devel --- bin/show-dependencies | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bin/show-dependencies b/bin/show-dependencies index fbd15ce..6c1d80f 100755 --- a/bin/show-dependencies +++ b/bin/show-dependencies @@ -225,11 +225,15 @@ for target_package in "$@"; do line_count="$(wc -l < "${tmp_dir}/input")" if [ "${line_count}" -gt 500 ]; then - rm -f "${output}" - >&2 printf 'Skipping graph for "%s" - would be too big (%d).\n' \ - "${target_package}" \ - "${line_count}" - continue + sed -i '/"base\(-devel\)\?"/d' "${tmp_dir}/input" + line_count="$(wc -l < "${tmp_dir}/input")" + if [ "${line_count}" -gt 600 ]; then + rm -f "${output}" + >&2 printf 'Skipping graph for "%s" - would be too big (%d).\n' \ + "${target_package}" \ + "${line_count}" + continue + fi fi printf 'small enough (%s): %d\n' \ "${target_package}" \ -- cgit v1.2.3-54-g00ecf