diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-07-19 17:14:43 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2021-07-19 17:14:43 -0400 |
commit | 1125fff0317f13f5ff255c2557e67e813acfd5a3 (patch) | |
tree | c008079fedc0953502f3349d58ce7774d6d0b2b5 | |
parent | 9de7f72fb864d188e01c18d9cd157ec20e44e46b (diff) |
[BACKPORTED]: prune-me - accept .zst packageswip-2021-07
-rw-r--r-- | lib/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common.sh b/lib/common.sh index d5292ca..92712fa 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -182,7 +182,7 @@ find_cached_package() { for dir in "${searchdirs[@]}"; do [[ -d $dir ]] || continue - for pkg in "$dir"/*.pkg.tar?(.?z); do + for pkg in "$dir"/*.pkg.tar?(.gz|.xz|.zst); do [[ -f $pkg ]] || continue # avoid adding duplicates of the same inode @@ -192,7 +192,7 @@ find_cached_package() { # split apart package filename into parts pkgbasename=${pkg##*/} - pkgbasename=${pkgbasename%.pkg.tar?(.?z)} + pkgbasename=${pkgbasename%.pkg.tar?(.gz|.xz|.zst)} arch=${pkgbasename##*-} pkgbasename=${pkgbasename%-"$arch"} |