base-files: vkpurge: fix parameter expansion in list_kernels()

This fixes next-kernels from having too much string of their versions
stripped.

Next-kernel versions have the format "vmlinu[xz]-<ver>-next-<date>".
Thus, the string was wrongly shortened to "<date>", instead of the
correct "<ver>-next-<date>".

Closes: #24298 [via git-merge-pr]
This commit is contained in:
avoidr 2020-08-15 21:10:54 +02:00 committed by Andrew J. Hesford
parent 6f5d9b4ad5
commit 67e7b4b86e
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ list_kernels() {
case "$installed" in case "$installed" in
*"$k"*) continue ;; *"$k"*) continue ;;
esac esac
kver=${k##*-} kver=${k#*-}
case "$kver" in case "$kver" in
"$running") ;; "$running") ;;
"*") ;; # /boot isn't mounted -> no vmlinu[xz] "*") ;; # /boot isn't mounted -> no vmlinu[xz]

View file

@ -1,7 +1,7 @@
# Template file for 'base-files' # Template file for 'base-files'
pkgname=base-files pkgname=base-files
version=0.141 version=0.141
revision=2 revision=3
bootstrap=yes bootstrap=yes
depends="xbps-triggers" depends="xbps-triggers"
short_desc="Void Linux base system files" short_desc="Void Linux base system files"