summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-09 15:26:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-09 15:26:59 +0100
commiteea85d44a596798b6cb67593f0dd35cf392b8643 (patch)
tree28ce2a7ead5c0cbb29363df0856808312141a967
parentfb0ac92ff880ece5b526cbedaa9b8d83ea5c4841 (diff)
downloadwebsite-eea85d44a596798b6cb67593f0dd35cf392b8643.tar.gz
sort all releases by number, no matter if they are "stable" or "longterm"v2019-01-09-02
This keeps them in order. We keep linux-next at the end. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xplugins/releases.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/releases.py b/plugins/releases.py
index f37a267..1af6390 100755
--- a/plugins/releases.py
+++ b/plugins/releases.py
@@ -181,6 +181,9 @@ class KernelReleases():
releases.append(self.make_release_line(found, 'longterm', iseol))
+ # sort everything by version number
+ releases = sorted(releases, key=lambda x: StrictVersion(x[0][1:]), reverse=True)
+
# now find latest tag in linux-next
repo = Repo(GIT_NEXT)
tagrefs = self.get_tagref_list(repo, cutoff)