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

This commit is contained in:
Simone Margaritelli 2019-10-20 19:48:52 +02:00
parent 4018071bba
commit 6d5054387b
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -85,7 +85,7 @@ def install(display, update):
os.system('unzip "%s" -d "%s"' % (target_path, path)) os.system('unzip "%s" -d "%s"' % (target_path, path))
source_path = os.path.join(path, name) source_path = os.path.join(path, name)
checksums = glob.glob("%s/*.sha256") checksums = glob.glob("%s/*.sha256" % path)
if len(checksums) == 0: if len(checksums) == 0:
if update['native']: if update['native']:
logging.warning("native update without SHA256 checksum file") logging.warning("native update without SHA256 checksum file")