Fixed for checksum

This commit is contained in:
Dimitris Zlatanidis 2023-03-29 18:20:41 +03:00
parent 46ff3e5f23
commit 3a5d7c4b49

View file

@ -91,7 +91,7 @@ class InstallData(Configs):
for line in checksums_md5:
line = line.strip()
if line.endswith('.txz'):
if line.endswith(('.txz', '.tgz')):
file: str = line.split('./')[1].split('/')[-1].strip()
checksum: str = line.split('./')[0].strip()
checksums_dict[file] = checksum
@ -177,7 +177,7 @@ class InstallData(Configs):
for line in checksums_md5:
line = line.strip()
if line.endswith('.txz'):
if line.endswith(('.txz', '.tgz')):
file: str = line.split('./')[1].split('/')[-1].strip()
checksum: str = line.split('./')[0].strip()
checksums_dict[file] = checksum
@ -263,7 +263,7 @@ class InstallData(Configs):
for line in checksums_md5:
line = line.strip()
if line.endswith('.txz'):
if line.endswith(('.txz', '.tgz')):
file: str = line.split('./')[1].split('/')[-1].strip()
checksum: str = line.split('./')[0].strip()
checksums_dict[file] = checksum
@ -348,7 +348,7 @@ class InstallData(Configs):
for line in checksums_md5:
line = line.strip()
if line.endswith('.txz'):
if line.endswith(('.txz', '.tgz')):
file: str = line.split('./')[1].split('/')[-1].strip()
checksum: str = line.split('./')[0].strip()
checksums_dict[file] = checksum