From 3a5d7c4b4983edfcafd0831cd0b5c0c8e6b8e71f Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 29 Mar 2023 18:20:41 +0300 Subject: [PATCH] Fixed for checksum --- slpkg/install_data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slpkg/install_data.py b/slpkg/install_data.py index 350ed4a1..6068a0a9 100644 --- a/slpkg/install_data.py +++ b/slpkg/install_data.py @@ -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