From 10bbc453e42f8cac52210d84f7066b7fcaf06b55 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 17 Sep 2014 21:57:47 +0100 Subject: import pkgdest cleaning script It first moves old packages to a trash directory and then deletes broken symlinks from the repo directory. --- clean_built_package_dir | 4 ++-- 1 file 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 -- cgit v1.2.3-70-g09d2