Forzata scrittura delle checksum.
This commit is contained in:
parent
529cd1d0c8
commit
6fb7b052fe
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue