From 1f83db6105678aaf9a40cbf08c5bb5be7b17db9f Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 7 Jan 2023 22:57:15 +0100 Subject: [PATCH] Ristrutturazione codice di verifica. --- loaih/build.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/loaih/build.py b/loaih/build.py index 9116ad9..e06a2b4 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -82,7 +82,16 @@ class Build(loaih.RemoteBuild): """Calculate exclusions and other variables.""" print("--- Calculate Phase ---") - + + # let's check here if we are on a remote repo or local. + if self.storage_path.startswith("http"): + # Final repository is remote + self.repo_type = 'remote' + print("Repo is remote.") + else: + self.repo_type = 'local' + print("Repo is local.") + # AppName if self.query in { 'prerelease', 'daily' }: self.appname = 'LibreOfficeDev' @@ -149,13 +158,6 @@ class Build(loaih.RemoteBuild): print("--- Check Phase ---") - # let's check here if we are on a remote repo or local. - if self.storage_path.startswith("http"): - # Final repository is remote - self.repo_type = 'remote' - else: - self.repo_type = 'local' - if len(self.appimagefilename) != 2: self.calculate()