aboutsummaryrefslogtreecommitdiffstats
path: root/clean_built_package_dir
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-09-17 21:57:47 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-09-17 21:59:16 +0100
commit10bbc453e42f8cac52210d84f7066b7fcaf06b55 (patch)
tree50d71f240d8beda6fbfa9a816156678bf4c29256 /clean_built_package_dir
parent611f1403d5591b4319a8edb5b03b9925ae374e8f (diff)
downloadvcs-rebuild-10bbc453e42f8cac52210d84f7066b7fcaf06b55.tar.xz
import pkgdest cleaning script
It first moves old packages to a trash directory and then deletes broken symlinks from the repo directory.
Diffstat (limited to 'clean_built_package_dir')
-rwxr-xr-xclean_built_package_dir4
1 files changed, 2 insertions, 2 deletions
diff --git a/clean_built_package_dir b/clean_built_package_dir
index d2a0c1e..7484f1d 100755
--- a/clean_built_package_dir
+++ b/clean_built_package_dir
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-source "$HOME"/.makepkg.conf
+source $(dirname $0)/config.bash
+paccache -c "$PKGDEST" -k1 -m "$POOL"/trash
find -L "$REPODIR" -type l -delete
-paccache -c "$PKGDEST" -k2 -r