From 1c9d1783718afd77a88b7613e51fc27b01b90682 Mon Sep 17 00:00:00 2001 From: ilian Date: Sun, 24 Jan 2021 16:26:04 +0100 Subject: [PATCH] linux-rt: use latest version Take the last kernel version listed in sha256sums.asc when multiple versions are listed. We assume that the patches listed in sha256sums.asc are ordered by increasing version number. --- pkgs/os-specific/linux/kernel/update-rt.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/update-rt.sh b/pkgs/os-specific/linux/kernel/update-rt.sh index 4cbd45524a86..8cac5929252d 100755 --- a/pkgs/os-specific/linux/kernel/update-rt.sh +++ b/pkgs/os-specific/linux/kernel/update-rt.sh @@ -36,7 +36,8 @@ file-version() { latest-rt-version() { branch="$1" # e.g. 5.4 curl -sL "$mirror/projects/rt/$branch/sha256sums.asc" | - sed -ne '/.patch.xz/ { s/.*patch-\(.*\).patch.xz/\1/; p; q }' + sed -ne '/.patch.xz/ { s/.*patch-\(.*\).patch.xz/\1/p}' | + tail -n 1 } update-if-needed() {