diff options
Diffstat (limited to 'lib')
-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 eaa16a4..fce52f6 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -142,7 +142,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?(.!(sig|*.*)); do [[ -f $pkg ]] || continue # avoid adding duplicates of the same inode @@ -152,7 +152,7 @@ find_cached_package() { # split apart package filename into parts pkgbasename=${pkg##*/} - pkgbasename=${pkgbasename%.pkg.tar?(.?z)} + pkgbasename=${pkgbasename%.pkg.tar*} arch=${pkgbasename##*-} pkgbasename=${pkgbasename%-"$arch"} |