1
0

Aggiunto codice per debug, corretto lancio comando di checksum.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Emiliano Vavassori 2023-01-07 00:52:21 +01:00
parent 2405601d2d
commit 41dcbe1718

View File

@ -392,22 +392,26 @@ class Build(loaih.RemoteBuild):
def __create_checksum__(self, file): def __create_checksum__(self, file):
"""Internal function to create checksum file.""" """Internal function to create checksum file."""
checksum = subprocess.run(shlex.split(f"md5sum {file}"), checksum = subprocess.run(shlex.split(f"md5sum {file}"), shell=True,
capture_output=True, text=True, encoding='utf-8', check=True) capture_output=True, text=True, encoding='utf-8', check=True,
cwd=self.appnamedir)
if checksum.stdout: if checksum.stdout:
with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile: with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile:
print(f"DEBUG: writing checksum for {file}.")
checkfile.write(checksum.stdout) checkfile.write(checksum.stdout)
def publish(self): def publish(self):
"""Moves built versions to definitive storage.""" """Moves built versions to definitive storage."""
print("DEBUG: reached publish.")
if all(self.built[arch] for arch in self.arch): if all(self.built[arch] for arch in self.arch):
# All files are already present in the full_path # All files are already present in the full_path
return return
os.chdir(self.appnamedir) os.chdir(self.appnamedir)
# Two cases here: local and remote storage_path. # Two cases here: local and remote storage_path.
if self.remoterepo: if self.remoterepo:
# Remote first. # Remote first.