From 181940b365133ca48a1556b227cc4d6266be3b40 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Tue, 22 Mar 2022 02:04:25 +0100 Subject: [PATCH] Corretta determinazione storage in cui spostare le build. --- loaih/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loaih/__init__.py b/loaih/__init__.py index fd94008..2662ec3 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -46,9 +46,10 @@ class Build(object): def check(self, storage_path): """Checking if the requested AppImage has been already built.""" + self.storage_path = storage_path self.storage_path += ('/daily' if self.query == 'daily' else '') self.storage_path += ('/prerelease' if self.query == 'prerelease' else '') - self.storage_path = storage_path + ('/portable' if self.portable else '') + self.storage_path += ('/portable' if self.portable else '') # Incompatibilities - if portable and updatable are asked together, # only portable will be built. if self.portable and self.updatable: @@ -201,9 +202,8 @@ class Build(object): # for the daily build, updatable builds work if the latest one # provide updates. if self.query == 'daily': - zsync = self.appname + self.version.split('-')[0] + self.languagepart + ('.help' if self.offline_help else '') + '-' + arch + '.AppImage.zsync' - else: - zsync = self.appimagefilename[arch] + '.zsync' + appversion = 'daily' + 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) else: