1
0

Correzione md5.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Emiliano Vavassori 2023-01-07 00:07:03 +01:00
parent 3aab2626ed
commit f6bcf610ba

View File

@ -387,8 +387,10 @@ class Build(loaih.RemoteBuild):
def __create_checksum__(self, file):
"""Internal function to create checksum file."""
checksum = subprocess.run(f"md5sum {file}", shell=True,
capture_output=True, text=True, encoding='utf-8', check=True)
checksum = subprocess.run(
f"md5sum {file}", shell=True, cwd=self.appnamedir,
capture_output=True, text=True, encoding='utf-8', check=True
)
if checksum.stdout:
with open(f"{file}.md5", 'w', encoding='utf-8') as csfile:
csfile.write(checksum.stdout)