From 03620cf013cd8306310d6ae1d850a47d3cad3b73 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 7 Jan 2023 01:37:17 +0100 Subject: [PATCH] Correzione append percorsi. --- loaih/build.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/loaih/build.py b/loaih/build.py index 356699d..de67f36 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -433,10 +433,12 @@ class Build(loaih.RemoteBuild): if self.remoterepo: # Remote first. # Build destination directory - if len(self.relative_path) > 0: - remotepath = str.join('/', self.relative_path.insert(0, self.remote_path)) - else: + if len(self.relative_path) == 0: remotepath = str.join('/', [ self.remote_path, '' ]) + 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)) try: subprocess.run( r"rsync -rlIvz --munge-links *.AppImage* " +