diff --git a/loaih/build.py b/loaih/build.py index abfb12e..a0f021d 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -395,11 +395,15 @@ class Build(loaih.RemoteBuild): os.chdir(self.appnamedir) for arch in self.arch: - if self.built[arch]: + if not self.built[arch]: + # Here's the contrary. A newly built package has not yet been + # marked as built. for item in [ self.appimagefilename[arch], self.zsyncfilename[arch] ]: - # For any built arch, find out if a file exist. - print(f"DEBUG: checkumming {item}.") - self.__create_checksum__(item) + itempath = os.path.join(self.appnamedir, item) + if os.path.exists(itempath): + # For any built arch, find out if a file exist. + print(f"DEBUG: checkumming {item}.") + self.__create_checksum__(item) def __create_checksum__(self, file): @@ -418,7 +422,7 @@ class Build(loaih.RemoteBuild): def publish(self): """Moves built versions to definitive storage.""" - print("DEBUG: reached publish.") + print("--- Publish Phase ---") if all(self.built[arch] for arch in self.arch): # All files are already present in the full_path @@ -454,6 +458,9 @@ class Build(loaih.RemoteBuild): def generalize_and_link(self, chdir = 'default'): """Creates the needed generalized files if needed.""" + + print("--- Generalize and Link Phase ---") + # If called with a pointed version, no generalize and link necessary. if not self.branch_version: return