Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-02 09:10:42 +0200
committerErich Eckner <git@eckner.net>2017-08-02 09:10:42 +0200
commit741b08359ccf5cfacf4de1acf599b4cf88551a98 (patch)
tree0cc6f0b92a56dc1278ce43f2202c7b55206d848a
parent40ff3da46482c7a3992096a193bd4f704a65a120 (diff)
bin/show-dependencies: move output directory variable to conf/default.conf
-rwxr-xr-xbin/show-dependencies2
-rwxr-xr-xconf/default.conf3
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index abd9ac3..730442d 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -79,7 +79,7 @@ for target_package in "$@"; do
"${tmp_dir}/build-order"
touch "${tmp_dir}/knots"
- output="/srv/http/graphs/${target_package}.png"
+ output="${graphs_directory}/${target_package}.png"
(
grep " $(str_to_regex "${target_package}")\$" "${tmp_dir}/original-build-order" || \
diff --git a/conf/default.conf b/conf/default.conf
index ff47333..6e74bc6 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -51,6 +51,9 @@ straws_that_might_repair_failing_builds="$(
':with_build_support:clean_chroot:'
)"
+# where should dependency graphs be stored
+graphs_directory='/srv/http/graphs'
+
# possibly pull in custom modifications
[ -r "${base_dir}/conf/local.conf" ] && . "${base_dir}/conf/local.conf"