index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Levente Polyak <anthraxx@archlinux.org> | 2019-12-04 12:39:34 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-12-08 20:59:11 +0100 |
commit | d6866e0544581840cc021e4be68c1c450fcb7963 (patch) | |
tree | 37af4a116a58be53ce08f850e5a2fbe8c90fc8f9 /lib | |
parent | 8edad226166eb6f2888b87cf8e0a9952822c887a (diff) |
-rw-r--r-- | lib/common.sh | 4 |
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"} |