linux-hardened: quickfix to make sure the updater is working again

main
Maximilian Bosch 2 years ago
parent 9ab0fece50
commit d6b6293c90
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
  1. 9
      pkgs/os-specific/linux/kernel/hardened/update.py

@ -219,7 +219,16 @@ failures = False
# Match each kernel version with the best patch version.
releases = {}
i = 0
for release in repo.get_releases():
# Dirty workaround to make sure that we don't run into issues because
# GitHub's API only allows fetching the last 1000 releases.
# It's not reliable to exit earlier because not every kernel minor may
# have hardened patches, hence the naive search below.
i += 1
if i > 500:
break
version = parse_version(release.tag_name)
# needs to look like e.g. 5.6.3-hardened1
if len(version) < 4:

Loading…
Cancel
Save