kiss: remove transitional support for <pkg>#<ver>... tarball scheme.

If your cache still contains these:

run() {
  printf '%s\n' "$*"
  "$@"
}

set -- "${XDG_CACHE_HOME:-"$HOME/.cache"}/kiss/bin/"*.tar.*

for f do
    dir=${f%/*}
    pkg=${f##*/}
    pkg=${pkg%[#@]*}
    suf=${f##*[#@]}

    case $f in "$dir/$pkg#$suf")
        run mv -f "$f" "$dir/$pkg@$suf"
    esac
done
This commit is contained in:
Dylan Araps 2021-07-04 11:50:23 +00:00
parent a24ab03b2d
commit 3d1d4ef792
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 2 additions and 5 deletions

7
kiss
View File

@ -226,14 +226,11 @@ pkg_list() {
pkg_cache() {
# Find the tarball of a package using a glob. Use the first found match
# of '<pkg_name>[#@]<pkg_version><pkg_release>.tar.*'.
# of '<pkg_name>@<pkg_version><pkg_release>.tar.*'.
pkg_find_version "$1"
set +f
set -f -- "$bin_dir/$1"[#@]"$repo_ver-$repo_rel.tar."*
[ -f "$2" ] && shift
set -f -- "$bin_dir/$1@$repo_ver-$repo_rel.tar."*
tar_file=$1
[ -f "$1" ]