Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
d0dd48b2
Commit
d0dd48b2
authored
Nov 04, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reformat to get a one-time distro
parent
b087bec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
uitwww/src/download/compile_download.py
uitwww/src/download/compile_download.py
+8
-4
No files found.
uitwww/src/download/compile_download.py
View file @
d0dd48b2
...
...
@@ -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"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment