From baa0564c1686d069bf7ce66aac240aee12696833 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 21 Mar 2022 00:34:38 +0100 Subject: [PATCH] Correzione a check(). --- loaih/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/loaih/__init__.py b/loaih/__init__.py index 0792e7d..795b6df 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -43,10 +43,7 @@ class Build(object): def check(self, storage_path): """Checking if the requested AppImage has been already built.""" - self.storage_path = storage_path - - if self.portable: - self.storage_path += "/portable" + self.storage_path = storage_path + ('/portable' if self.portable else '') for arch in self.arch: res = subprocess.check_output("find {path} -name '{appimage}'".format( @@ -187,7 +184,7 @@ class Build(object): # Building app if self.updatable: zsync = self.appimagefilename[arch] + '.zsync' - subprocess.run("VERSION={version} ./appimagetool -u 'zsync|{zsync}' -v ./{appname}.AppDir/".format(version = appversion, zsync = zsync, appname = self.__appname__), shell=True) + subprocess.run("VERSION={version} ./appimagetool -u 'zsync|{zsync}' -v ./{appname}.AppDir/".format(version = appversion, zsync = self.appimagefilename[arch] + '.zsync', appname = self.appname), shell=True) else: subprocess.run("VERSION={version} ./appimagetool -v ./{appname}.AppDir/".format(version = appversion, appname = self.appname), shell=True)