Skip to content

Commit

Permalink
kernel-updater: filter on eol releases
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed Nov 14, 2020
1 parent 97f97ea commit 1efa4a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel-updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def get_version_upstream(self):
if 200 <= r.status_code < 300:
content = json.loads(r.content.decode('utf-8'))
releases = [rel['version'] for rel in content['releases'] if
rel['moniker'] in ('stable', 'longterm')]

rel['moniker'] in ('stable', 'longterm') and not rel['iseol']]
releases.sort(key=parse_version, reverse=True)

if 'stable-' in self.branch:
Expand Down

0 comments on commit 1efa4a6

Please sign in to comment.