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

This commit is contained in:
Maximilian Bosch 2022-04-23 13:54:55 +02:00
parent 9ab0fece50
commit d6b6293c90
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -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: