Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] base-files: vkpurge: fix parameter expansion in list_kernels()
@ 2020-08-15 19:51 avoidr
  2020-08-15 19:58 ` ericonr
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: avoidr @ 2020-08-15 19:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

There is a new pull request by avoidr against master on the void-packages repository

https://github.com/avoidr/void-packages vkpurge
https://github.com/void-linux/void-packages/pull/24298

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>".

A patch file from https://github.com/void-linux/void-packages/pull/24298.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-vkpurge-24298.patch --]
[-- Type: text/x-diff, Size: 980 bytes --]

From 24aac5d8aacbf79a7926ff7d0f5f0d32b2503a4e Mon Sep 17 00:00:00 2001
From: avoidr <avoidr@posteo.de>
Date: Sat, 15 Aug 2020 21:10:54 +0200
Subject: [PATCH] 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>".
---
 srcpkgs/base-files/files/vkpurge | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/base-files/files/vkpurge b/srcpkgs/base-files/files/vkpurge
index 5519147b905..131587e5af6 100644
--- a/srcpkgs/base-files/files/vkpurge
+++ b/srcpkgs/base-files/files/vkpurge
@@ -26,7 +26,7 @@ list_kernels() {
 			case "$installed" in
 				*"$k"*) continue ;;
 			esac
-			kver=${k##*-}
+			kver=${k#*-}
 			case "$kver" in
 				"$running") ;;
 				"*") ;; # /boot isn't mounted -> no vmlinu[xz]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-08-19  1:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-15 19:51 [PR PATCH] base-files: vkpurge: fix parameter expansion in list_kernels() avoidr
2020-08-15 19:58 ` ericonr
2020-08-15 21:12 ` avoidr
2020-08-15 21:15 ` [PR PATCH] [Updated] " avoidr
2020-08-17  0:46 ` ahesford
2020-08-18 20:33 ` q66
2020-08-18 20:46 ` ahesford
2020-08-19  0:32 ` avoidr
2020-08-19  0:52 ` ahesford
2020-08-19  1:02 ` [PR PATCH] [Closed]: " ahesford
2020-08-19  1:45 ` avoidr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).