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
935b7bc7
Commit
935b7bc7
authored
Nov 19, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm _strip_non_lts_releases() - useless
parent
f4ca7251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
uitwww/download.py
uitwww/download.py
+0
-12
No files found.
uitwww/download.py
View file @
935b7bc7
...
...
@@ -48,8 +48,6 @@ class Downloads:
path
,
_dict
=
collections
.
OrderedDict
,
)
self
.
_strip_non_lts_releases
()
# Save the hash of the configuration
with
open
(
path
,
"rb"
)
as
raw
:
self
.
_config_hash
=
"sha1=%s"
%
hashlib
.
sha1
(
raw
.
read
()).
hexdigest
()
...
...
@@ -97,16 +95,6 @@ class Downloads:
self
.
_sha256sums
=
self
.
_fetch_sha256sums
()
return
self
.
_sha256sums
def
_strip_non_lts_releases
(
self
):
"""Process the lts-only distro configuration"""
for
config
in
self
.
config
[
"distros"
].
values
():
if
not
config
[
"lts-only"
]:
continue
for
release
in
config
[
"releases"
][:]:
if
not
self
.
config
[
"releases"
][
release
][
"lts"
]:
config
[
"releases"
].
remove
(
release
)
def
_fetch_sha256sums
(
self
):
"""Fetch all the needed SHA256SUMS"""
result
=
{}
...
...
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