From bf1d9e044694a75145e54f3b8faf037dacb7dc3e Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 8 Apr 2022 01:41:17 +0200 Subject: [PATCH] Ancora su versione lanciata in ambiente. --- loaih/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loaih/__init__.py b/loaih/__init__.py index caca32d..63dc18a 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -86,7 +86,7 @@ class Build(object): if len(self.relative_path) == 0: if self.query == 'daily': self.relative_path.append('daily') - elif self.query == 'prerelease': + elif self.query == 'primageerelease': self.relative_path.append('prerelease') # Not the same check, an additional one @@ -271,7 +271,7 @@ class Build(object): buildopts_str = str.join(' ', buildopts) # Build the number-specific build - subprocess.run(shlex.split(f"{self.appnamedir}/appimagetool {buildopts_str} -v ./{self.appname}.AppDir/"), env={ 'VERSION': self.appversion }) + subprocess.run(shlex.split(f"{self.appnamedir}/appimagetool {buildopts_str} -v ./{self.appname}.AppDir/"), env={ "VERSION": self.appversion }) print(f"Built AppImage version {self.appversion}") @@ -291,7 +291,7 @@ class Build(object): for arch in self.arch: for item in [ self.appimagefilename[arch], self.zsyncfilename[arch] ]: # For any built arch, find out if a file exist. - if len(glob.glob(self.appimagefilename[arch] + '.md5')) == 0: + if not os.path.exists(f"{item}.md5"): # Build checksum subprocess.run(shlex.split(f"md5sum {item} > {item}.md5")) @@ -306,7 +306,7 @@ class Build(object): # Forcing creation of subfolders, in case there is a new build os.makedirs(self.full_path, exist_ok = True) for file in glob.glob("*.AppImage*"): - subprocess.run(shlex.split(f"cp -f {file} {self.fullpath}")) + subprocess.run(shlex.split(f"cp -f {file} {self.full_path}")) def generalize_and_link(self):