misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-20 19:53:02 +02:00
parent 682b373c66
commit f9cbef9697
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -99,7 +99,7 @@ def install(display, update):
logging.info("[update] verifying %s for %s ..." % (checksum, source_path))
with open(checksum, 'rt') as fp:
expected = fp.read().strip().lower()
expected = fp.read().split('=')[1].strip().lower()
real = subprocess.getoutput('sha256sum "%s"' % source_path).split(' ')[0].strip().lower()