1
0

Forzata scrittura delle checksum.

This commit is contained in:
Emiliano Vavassori 2022-04-09 01:56:29 +02:00
parent 529cd1d0c8
commit 6fb7b052fe

View File

@ -297,10 +297,9 @@ class Build(object):
def __create_checksum__(self, file): def __create_checksum__(self, file):
"""Internal function to create checksum file.""" """Internal function to create checksum file."""
if not os.path.exists(f"{file}.md5"):
checksum = subprocess.run(shlex.split(f"md5sum {file}"), capture_output=True, text=True, encoding='utf-8') checksum = subprocess.run(shlex.split(f"md5sum {file}"), capture_output=True, text=True, encoding='utf-8')
if checksum.stdout: if checksum.stdout:
with open(f"{file}.md5", 'w+') as c: with open(f"{file}.md5", 'w') as c:
c.write(checksum.stdout) c.write(checksum.stdout)
def publish(self): def publish(self):