mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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.
This commit is contained in:
parent
a8559f10e5
commit
1c9d178371
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user