diff options
author | Bryan Drewery <bryan@shatow.net> | 2021-07-27 01:04:15 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2021-07-27 01:04:39 +0300 |
commit | 7067ef12d42a7757ed8c7bbbc104d1daf0ae1641 (patch) | |
tree | 6cb23ad47d808c0c0d4aa0b7a2420c558c2f70e8 | |
parent | ba0f07ab035ee618f3b961cd22338e1c6d947415 (diff) |
bulk pkg cache: Delete anything in the cache missing in All/.
This will cleanup stale .txz caches
(cherry picked from commit 15483c6cc9df84bdca40002e8800d2cac5357bb0)
-rwxr-xr-x | src/share/poudriere/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index 001244db..252c0cbe 100755 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -4884,7 +4884,7 @@ delete_stale_pkg_cache() { [ ! -d ${cache_dir} ] && return 0 dirempty ${cache_dir} && return 0 - for pkg in ${cache_dir}/*.${PKG_EXT}; do + for pkg in ${cache_dir}/*; do pkg_file="${pkg##*/}" # If this package no longer exists in the PKGDIR, delete the cache. [ ! -e "${PACKAGES}/All/${pkg_file}" ] && |