mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: swap to @ for separator in tarball names but continue to support # for some time
This commit is contained in:
parent
332ba3450e
commit
53e856195b
10
kiss
10
kiss
@ -234,11 +234,15 @@ pkg_cache() {
|
||||
read -r version release 2>/dev/null < "$repo_dir/version"
|
||||
|
||||
set +f
|
||||
set -f -- "$bin_dir/$1#$version-$release.tar."*
|
||||
set -f -- "$bin_dir/$1"[#@]"$version-$release.tar."*
|
||||
|
||||
# Prefer '@' to '#' in tarball names.
|
||||
[ -f "$2" ] && shift
|
||||
|
||||
printf 'unpacking %s\n' "$1"
|
||||
tar_file=$1
|
||||
|
||||
[ -f "$tar_file" ]
|
||||
[ -f "$1" ]
|
||||
}
|
||||
|
||||
pkg_sources() {
|
||||
@ -588,7 +592,7 @@ pkg_tar() (
|
||||
lz) lzip -z ;;
|
||||
xz) xz -zT 0 ;;
|
||||
zst) zstd -z ;;
|
||||
esac > "$bin_dir/$1#$version-$release.tar.${KISS_COMPRESS:-gz}"
|
||||
esac > "$bin_dir/$1@$version-$release.tar.${KISS_COMPRESS:-gz}"
|
||||
|
||||
run_user_hook post-package "$1"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user