summaryrefslogtreecommitdiff
path: root/bin/cleanup
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-28 14:04:48 +0100
committerErich Eckner <git@eckner.net>2017-11-28 14:04:48 +0100
commit889c4aa5502eba27fa9775459ffe7157c6882183 (patch)
tree2eac0638bcd90b94021c6cd93a0c74ff5c528f98 /bin/cleanup
parent524ad19e1ea39627b7193caabf5cf16b5f52265e (diff)
downloadbuilder-889c4aa5502eba27fa9775459ffe7157c6882183.tar.xz
bin/cleanup: remove dependency graphs of packages on the deletion-list
Diffstat (limited to 'bin/cleanup')
-rwxr-xr-xbin/cleanup9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/cleanup b/bin/cleanup
index ff4247c..78daece 100755
--- a/bin/cleanup
+++ b/bin/cleanup
@@ -99,3 +99,12 @@ find "${build_log_directory}/success" -maxdepth 1 -type f -mtime +14 \
# remove old package meta data
delete_old_metadata
+
+# remove dependency graphs of packages on the deletion list
+sed '
+ s|^|'"${webserver_directory}"'/graphs/|
+ s|$|.png|
+' "${work_dir}/deletion-list" | \
+ xargs -rn1 rm -f
+
+exit 0