linux/kernel/update-mainline: don't readd EOL kernels

This commit is contained in:
K900 2024-04-10 18:09:49 +03:00
parent 6347cd23dc
commit cd70dc73d8

View file

@ -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}"