Commit d0dd48b2 authored by shadMod's avatar shadMod 💬

reformat to get a one-time distro

parent b087bec5
...@@ -157,12 +157,16 @@ class CompileVersion: ...@@ -157,12 +157,16 @@ class CompileVersion:
# write all distros and relative archs # write all distros and relative archs
for key in data["distros"]: for key in data["distros"]:
data["distros"][key]["lts-only"] = False # get single distro
data["distros"][key]["releases"] = ["latest", "lts"] distro = data["distros"][key]
data["distros"][key]["lts-support-years"] = ( # set up key lts-only with default False
distro["lts-only"] = False
# set up the support years of the LTS
distro["lts-support-years"] = (
5 if key in self.SUPPORT_5 else 3 5 if key in self.SUPPORT_5 else 3
) )
data["distros"][key]["releases"] = ( # define releases and relative ordering
distro["releases"] = (
["latest", "lts"] ["latest", "lts"]
if key not in self.INVERT_RELEASES if key not in self.INVERT_RELEASES
else ["lts", "latest"] else ["lts", "latest"]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment