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
5231d5c2
Commit
5231d5c2
authored
Oct 09, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added if to take only 'ftp-stud'
parent
dabf31bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
uitwww/download.py
uitwww/download.py
+9
-7
No files found.
uitwww/download.py
View file @
5231d5c2
...
@@ -130,13 +130,15 @@ class Downloads:
...
@@ -130,13 +130,15 @@ class Downloads:
md5s
[
name
]
=
hash
md5s
[
name
]
=
hash
files_content
[
path
]
=
md5s
files_content
[
path
]
=
md5s
# Add the MD5 to the result if it was found
if
path
==
'http://ftp-stud.fht-esslingen.de/Mirrors/releases.ubuntu.com/focal'
:
if
file
in
files_content
[
path
]:
key
=
"%s:%s:%s"
%
(
distro
,
release
,
arch
)
# Add the MD5 to the result if it was found
result
[
key
]
=
files_content
[
path
][
file
]
if
file
in
files_content
[
path
]:
else
:
key
=
"%s:%s:%s"
%
(
distro
,
release
,
arch
)
print
(
files_content
[
path
])
result
[
key
]
=
files_content
[
path
][
file
]
raise
RuntimeError
(
"Missing MD5 for {}"
.
format
(
file
))
else
:
print
(
files_content
[
path
])
raise
RuntimeError
(
"Missing MD5 for {}"
.
format
(
file
))
return
result
return
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