kiss: remove pkg_find_version_split

should have been removed in b66a2c4.
This commit is contained in:
phoebos 2023-04-22 03:20:42 +01:00
parent 5e338034ec
commit 4e809ddf6b
No known key found for this signature in database

13
kiss
View File

@ -314,15 +314,6 @@ pkg_find_version() {
die "$pkg" "Build file not found or not executable" die "$pkg" "Build file not found or not executable"
} }
pkg_find_version_split() {
pkg_find_version "$@"
# Split the version on '.+-_' to obtain individual components.
IFS=.+-_ read -r repo_major repo_minor repo_patch repo_ident <<EOF
$repo_ver
EOF
}
pkg_find() { pkg_find() {
_pkg_find "$@" || die "'$1' not found" _pkg_find "$@" || die "'$1' not found"
} }
@ -439,7 +430,7 @@ pkg_source_resolve() {
pkg_source() { pkg_source() {
# Download any remote package sources. The existence of local files is # Download any remote package sources. The existence of local files is
# also checked. # also checked.
pkg_find_version_split "$1" pkg_find_version "$1"
# Support packages without sources. Simply do nothing. # Support packages without sources. Simply do nothing.
[ -f "$repo_dir/sources" ] || return 0 [ -f "$repo_dir/sources" ] || return 0
@ -1048,7 +1039,7 @@ pkg_build_all() {
for pkg do for pkg do
log "$pkg" "Building package ($((_build_cur+=1))/$#)" log "$pkg" "Building package ($((_build_cur+=1))/$#)"
pkg_find_version_split "$pkg" pkg_find_version "$pkg"
# arg1: queue-status # arg1: queue-status
# arg2: package name # arg2: package name