From be24ebf75e2b2a59d99c6300f4f3b49a26c875c8 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 21 Mar 2022 01:33:47 +0100 Subject: [PATCH] Ulteriori correzioni per portable. --- loaih/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/loaih/__init__.py b/loaih/__init__.py index d682d94..32643cc 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -47,6 +47,11 @@ class Build(object): def check(self, storage_path): """Checking if the requested AppImage has been already built.""" self.storage_path = 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: + print("Upgradable and portable options were required together. Building only portable.") + self.updatable = False for arch in self.arch: res = subprocess.check_output("find {path} -name '{appimage}'".format( @@ -109,12 +114,6 @@ class Build(object): if self.portable and not 'portable' in self.storage_path: self.storage_path += "/portable" - # Incompatibilities - if portable and updatable are asked together, - # only portable will be built. - if self.portable and self.updatable: - print("Upgradable and portable options were required together. Building only portable.") - self.updatable = False - for arch in self.arch: # Checking if a valid path has been provided if self.url[arch] == '-':