Commit d0dd48b2 authored by shadMod's avatar shadMod 💬

reformat to get a one-time distro

parent b087bec5
......@@ -157,12 +157,16 @@ class CompileVersion:
# write all distros and relative archs
for key in data["distros"]:
data["distros"][key]["lts-only"] = False
data["distros"][key]["releases"] = ["latest", "lts"]
data["distros"][key]["lts-support-years"] = (
# get single distro
distro = data["distros"][key]
# 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
)
data["distros"][key]["releases"] = (
# define releases and relative ordering
distro["releases"] = (
["latest", "lts"]
if key not in self.INVERT_RELEASES
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