Forzata scrittura delle checksum.

This commit is contained in:
Emiliano Vavassori 2022-04-09 01:56:29 +02:00
parent 529cd1d0c8
commit 6fb7b052fe
1 changed files with 4 additions and 5 deletions

View File

@ -297,11 +297,10 @@ class Build(object):
def __create_checksum__(self, 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')
if checksum.stdout:
with open(f"{file}.md5", 'w+') as c:
c.write(checksum.stdout)
checksum = subprocess.run(shlex.split(f"md5sum {file}"), capture_output=True, text=True, encoding='utf-8')
if checksum.stdout:
with open(f"{file}.md5", 'w') as c:
c.write(checksum.stdout)
def publish(self):
"""Moves built versions to definitive storage."""