diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-09-17 21:57:47 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-09-17 21:59:16 +0100 |
commit | 10bbc453e42f8cac52210d84f7066b7fcaf06b55 (patch) | |
tree | 50d71f240d8beda6fbfa9a816156678bf4c29256 | |
parent | 611f1403d5591b4319a8edb5b03b9925ae374e8f (diff) | |
download | vcs-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.
-rwxr-xr-x | clean_built_package_dir | 4 |
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 |