From b087e85ec5c3abfb1a0049065e2bb013e56b08aa Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 7 Jan 2023 23:22:35 +0100 Subject: [PATCH] Semplificati alcuni messaggi nell'output. --- loaih/build.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/loaih/build.py b/loaih/build.py index 8bf07fb..0c619d5 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -161,6 +161,7 @@ class Build(loaih.RemoteBuild): self.calculate() for arch in self.arch: + print(f"Searching for {self.appimagefilename[arch]}") # First, check if by metadata the repo is remote or not. if self.repo_type == 'remote': # Remote storage. I have to query a remote site to know if it @@ -184,7 +185,6 @@ class Build(loaih.RemoteBuild): else: # Repo is local - print(f"Searching for {self.appimagefilename[arch]}") command = f"find {self.full_path} -name {self.appimagefilename[arch]}" res = subprocess.run(shlex.split(command), capture_output=True, @@ -198,11 +198,10 @@ class Build(loaih.RemoteBuild): if res.stdout and len(res.stdout.strip("\n")) > 0: # All good, the command was executed fine. - print(f"Build for {self.version} found.") self.built[arch] = True if self.built[arch]: - print(f"The requested AppImage already exists on storage for {arch}. I'll skip downloading, building and moving the results.") + print(f"Found requested AppImage: {self.appimagefilename[arch]}.") def download(self): @@ -214,7 +213,7 @@ class Build(loaih.RemoteBuild): for arch in self.arch: # Checking if a valid path has been provided if self.url[arch] == '-': - print(f"No build has been provided for the requested AppImage for {arch}. Continue with other options.") + print(f"Cannot build for arch {arch}. Continuing with other arches.") # Faking already built it so to skip other checks. self.built[arch] = True continue