From 41dcbe1718f9b18302abe0d800ccbe297cd36253 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 7 Jan 2023 00:52:21 +0100 Subject: [PATCH] Aggiunto codice per debug, corretto lancio comando di checksum. --- loaih/build.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/loaih/build.py b/loaih/build.py index b73b4e7..804fe0a 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -392,22 +392,26 @@ class Build(loaih.RemoteBuild): def __create_checksum__(self, file): """Internal function to create checksum file.""" - checksum = subprocess.run(shlex.split(f"md5sum {file}"), - capture_output=True, text=True, encoding='utf-8', check=True) + checksum = subprocess.run(shlex.split(f"md5sum {file}"), shell=True, + capture_output=True, text=True, encoding='utf-8', check=True, + cwd=self.appnamedir) if checksum.stdout: with open(f"{file}.md5", 'w', encoding='utf-8') as checkfile: + print(f"DEBUG: writing checksum for {file}.") checkfile.write(checksum.stdout) def publish(self): """Moves built versions to definitive storage.""" + + print("DEBUG: reached publish.") + if all(self.built[arch] for arch in self.arch): # All files are already present in the full_path return os.chdir(self.appnamedir) - # Two cases here: local and remote storage_path. if self.remoterepo: # Remote first.