summaryrefslogtreecommitdiff
path: root/clean-cache
diff options
context:
space:
mode:
Diffstat (limited to 'clean-cache')
-rwxr-xr-xclean-cache11
1 files changed, 11 insertions, 0 deletions
diff --git a/clean-cache b/clean-cache
new file mode 100755
index 0000000..35bc6a7
--- /dev/null
+++ b/clean-cache
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+mirror_dir='/srv/http/arch-mirror'
+
+for repo_dir in $(
+ find "${mirror_dir}" -type f -printf '%h\n' \
+ | uniq \
+ | sort -u
+); do
+ paccache -v -r -k 2 -c "${repo_dir}"
+done