mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Fixed md5sum comparison
This commit is contained in:
parent
e804cbb33f
commit
a45396acf9
2 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
||||||
4.4.4 - 31/12/2002
|
4.4.5 - 31/12/2022
|
||||||
|
Updated:
|
||||||
|
- Fixed md5sum comparison
|
||||||
|
|
||||||
|
4.4.4 - 31/12/2022
|
||||||
BugFixed:
|
BugFixed:
|
||||||
- AttributeError: 'PosixPath' object has no attribute 'startswith'
|
- AttributeError: 'PosixPath' object has no attribute 'startswith'
|
||||||
- KeyError: 'sbo_chglog_txt' #LQ post6401410
|
- KeyError: 'sbo_chglog_txt' #LQ post6401410
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Md5sum:
|
||||||
|
|
||||||
file_check = hashlib.md5(md5).hexdigest()
|
file_check = hashlib.md5(md5).hexdigest()
|
||||||
|
|
||||||
if file_check not in checksum:
|
if file_check != checksum:
|
||||||
print('\nExpected:', ''.join(checksum))
|
print('\nExpected:', ''.join(checksum))
|
||||||
print('Found:', file_check)
|
print('Found:', file_check)
|
||||||
print(f'\nMD5SUM check for {name} FAILED.')
|
print(f'\nMD5SUM check for {name} FAILED.')
|
||||||
|
|
Loading…
Add table
Reference in a new issue