Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-02 11:28:03 +0200
committerErich Eckner <git@eckner.net>2017-08-02 11:28:03 +0200
commit471aac0e751cb2c85ddd0682fde000e9f4406a58 (patch)
treef2a2f1344f75222daf16b913c19f9f0cf3b97dea /bin
parentd6c589c2db1a56bea53213355f05b2fdef585217 (diff)
bin/show-dependencies: reduce large graphs by ignoring base and base-devel
Diffstat (limited to 'bin')
-rwxr-xr-xbin/show-dependencies14
1 files 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}" \