mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Fixed for checksum
This commit is contained in:
parent
46ff3e5f23
commit
3a5d7c4b49
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue