forked from kiss-community/kiss
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:
parent
a24ab03b2d
commit
3d1d4ef792
7
kiss
7
kiss
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user