From cd70dc73d87c7565770630f6152586e3ab59e32a Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 10 Apr 2024 18:09:49 +0300 Subject: [PATCH] linux/kernel/update-mainline: don't readd EOL kernels --- pkgs/os-specific/linux/kernel/update-mainline.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/update-mainline.py b/pkgs/os-specific/linux/kernel/update-mainline.py index 020e55c5fe40..bf5001ee378a 100755 --- a/pkgs/os-specific/linux/kernel/update-mainline.py +++ b/pkgs/os-specific/linux/kernel/update-mainline.py @@ -130,6 +130,13 @@ def main(): continue if old_version is None: + if kernel.eol: + print( + f"{kernel.branch} is EOL, not adding...", + file=sys.stderr + ) + continue + message = f"linux_{nixpkgs_branch}: init at {kernel.version}" else: message = f"linux_{nixpkgs_branch}: {old_version} -> {kernel.version}"