From 0bea7a81bc7120a748c2fa0e1a19e8136504f158 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 7 Jan 2023 22:17:18 +0100 Subject: [PATCH] Correzione di un paio di errori di sintassi sui percorsi multipli. --- loaih/build.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/loaih/build.py b/loaih/build.py index 29218e3..b42c9ff 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -154,10 +154,10 @@ class Build(loaih.RemoteBuild): elif len(self.relative_path) == 1: path_arr = [ self.storage_path, self.relative_path[0], '' ] else: - path_arr = self.relative_path.insert(0, self.storage_path) + path_arr = self.relative_path + path_arr.insert(0, self.storage_path) path = str.join('/', path_arr) - print(f"DEBUG - Name: {name}, URL: {path}") matching = [] try: with urllib.request.urlopen(path) as url: @@ -410,7 +410,6 @@ class Build(loaih.RemoteBuild): itempath = os.path.join(self.appnamedir, item) if os.path.exists(itempath): # For any built arch, find out if a file exist. - print(f"DEBUG: checkumming {item}.") self.__create_checksum__(item) @@ -423,7 +422,6 @@ class Build(loaih.RemoteBuild): 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) @@ -446,7 +444,9 @@ class Build(loaih.RemoteBuild): elif len(self.relative_path) == 1: remotepath = str.join('/', [ self.remote_path, self.relative_path[0], '' ]) else: - remotepath = str.join('/', self.relative_path.insert(0, self.remote_path)) + path_arr = self.relative_path + path_arr.insert(0, self.remote_path) + remotepath = str.join('/', path_arr) try: subprocess.run( r"rsync -rlIvz --munge-links *.AppImage* " +