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
910cd692
Commit
910cd692
authored
Nov 04, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added typology in get_releases() return
added get_releases() docs param
parent
4b18761e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
uitwww/src/download/compile_download.py
uitwww/src/download/compile_download.py
+9
-4
No files found.
uitwww/src/download/compile_download.py
View file @
910cd692
...
...
@@ -210,8 +210,13 @@ class CompileVersion:
def
get_releases
(
self
,
data
:
list
,
distro
:
str
,
arch
:
str
)
->
(
dict
,
str
):
"""
version, codename, host = None, None, None
for version, codename, name in sorted(data, key=lambda x: x[0], reverse=True):
:param data: list of all versions
:param distro: name of the distro
:param arch: name of the architecture
"""
host
=
None
for
version
,
codename
,
name
,
typology
in
data
:
host
=
None
for
http
,
path
in
self
.
data_sources
:
try
:
...
...
@@ -233,8 +238,8 @@ class CompileVersion:
"version"
:
version
,
"codename"
:
codename
,
"host"
:
host
,
"lts": False if typology == "
latest
" else True,
}
"lts"
:
False
if
typology
==
"
interim
"
else
True
,
}
,
typology
if
host
is
None
:
raise
Exception
(
"No correct host"
)
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