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
b087bec5
Commit
b087bec5
authored
Nov 04, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced ignore_lts and ignore_interim with ignore_version
parent
02b48162
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
uitwww/src/download/compile_download.py
uitwww/src/download/compile_download.py
+6
-13
No files found.
uitwww/src/download/compile_download.py
View file @
b087bec5
...
...
@@ -23,10 +23,9 @@ from urllib.error import HTTPError
class
UbuntuRelease
:
def
__init__
(
self
,
path_url
=
None
,
ignore_
lts
=
None
,
ignore_interim
=
None
):
def
__init__
(
self
,
path_url
=
None
,
ignore_
version
=
None
):
self
.
path_url
=
path_url
self
.
ignore_lts
=
ignore_lts
self
.
ignore_interim
=
ignore_interim
self
.
ignore_version
=
ignore_version
def
get_table_rows
(
self
,
only_data
:
bool
=
True
):
"""
...
...
@@ -89,10 +88,7 @@ class CompileVersion:
:param path_url: url to get version list
:param path_out: path where the toml file will be written
:param constants: constants path
:param ignore_interim: list of tags of interim versions to be ignored
:param ignore_lts: list of tags of lts versions to be ignored
N.B.: 'interim' === 'latest'
:param ignore_version: list of tags versions to be ignored
"""
ARM64
=
[
"live-server"
]
...
...
@@ -105,19 +101,16 @@ class CompileVersion:
path_url
:
str
=
"https://releases.ubuntu.com/"
,
path_out
:
str
=
"../../data/downloads.toml"
,
constants
:
str
=
"./assets/costants.json"
,
ignore_interim
:
list
=
None
,
ignore_lts
:
list
=
None
,
ignore_version
:
list
=
None
,
):
self
.
path_url
=
path_url
self
.
path_out
=
path_out
self
.
constants
=
constants
self
.
ignore_interim
=
ignore_interim
if
ignore_interim
else
[]
self
.
ignore_lts
=
ignore_lts
if
ignore_lts
else
[]
self
.
ignore_version
=
ignore_version
if
ignore_version
else
[]
self
.
list_version
=
UbuntuRelease
(
path_url
=
self
.
path_url
,
ignore_lts
=
self
.
ignore_lts
,
ignore_interim
=
self
.
ignore_interim
,
ignore_version
=
self
.
ignore_version
,
).
get_list_version
@
property
...
...
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