Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] base-files: modify kernel listing in vkpurge
@ 2020-08-16 15:02 Ypnose
  2020-08-16 15:06 ` [PR PATCH] [Updated] " Ypnose
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Ypnose @ 2020-08-16 15:02 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Ypnose/void-packages master
https://github.com/void-linux/void-packages/pull/24310

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

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

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

From 72a51d340595c06d8fa8d26342923088918f9819 Mon Sep 17 00:00:00 2001
From: Ypnose <Ypnose@users.noreply.github.com>
Date: Sun, 16 Aug 2020 17:01:26 +0200
Subject: [PATCH] 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
---
 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..c7c6a78f6b2 100644
--- a/srcpkgs/base-files/files/vkpurge
+++ b/srcpkgs/base-files/files/vkpurge
@@ -33,7 +33,7 @@ list_kernels() {
 				$pattern) printf "%s\n" "$kver" ;;
 			esac
 		done
-	done | sort -u
+	done | sort -uV
 }
 
 run_hooks() {

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

end of thread, other threads:[~2020-08-30  6:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
2020-08-16 15:06 ` [PR PATCH] [Updated] " Ypnose
2020-08-20 15:40 ` ahesford
2020-08-21  5:48 ` Ypnose
2020-08-21 11:26 ` [PR PATCH] [Closed]: " sgn
2020-08-21 11:33 ` q66
2020-08-21 12:06 ` sgn
2020-08-21 13:14 ` q66
2020-08-21 19:19 ` Ypnose
2020-08-24 16:50 ` Ypnose
2020-08-24 16:52 ` ahesford
2020-08-24 23:59 ` sgn
2020-08-30  6:20 ` Ypnose

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