base-files: modify kernel listing in vkpurge

By default, kernel listing is not done by version, For example :

4.19.131_1
5.4.18_1
5.4.50_1
5.4.5_1
5.4.9_1
5.4.11_1

Using 'version-sort' option, it shows older versions before recent versions :
4.19.131_1
5.4.5_1
5.4.9_1
5.4.11_1
5.4.18_1
5.4.50_1

Close: #24310
This commit is contained in:
Ypnose 2020-08-16 17:01:26 +02:00 committed by Đoàn Trần Công Danh
parent 3579643463
commit 7bffaa5d0e
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ list_kernels() {
$pattern) printf "%s\n" "$kver" ;;
esac
done
done | sort -u
done | sort -uV
}
run_hooks() {

View file

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