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