Commit 5231d5c2 authored by shadMod's avatar shadMod 💬

added if to take only 'ftp-stud'

parent dabf31bc
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment