aboutsummaryrefslogtreecommitdiffstats
path: root/clean_packages
diff options
context:
space:
mode:
Diffstat (limited to 'clean_packages')
-rwxr-xr-xclean_packages7
1 files changed, 7 insertions, 0 deletions
diff --git a/clean_packages b/clean_packages
new file mode 100755
index 0000000..45ccdac
--- /dev/null
+++ b/clean_packages
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+source $(dirname $0)/config.bash
+
+paccache -c "$PKGDEST" -k1 -m "$POOL"/trash
+find -L "$REPODIR" -type l -delete
+find -L "$PKGBUILD_DIR" -type l -delete