Aggiunta testo per fasi. Rivista procedura.

This commit is contained in:
Emiliano Vavassori 2023-01-07 01:03:21 +01:00
parent 5df2c5dbdb
commit 0a18586201
1 changed files with 12 additions and 5 deletions

View File

@ -395,8 +395,12 @@ class Build(loaih.RemoteBuild):
os.chdir(self.appnamedir) os.chdir(self.appnamedir)
for arch in self.arch: 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 item in [ self.appimagefilename[arch], self.zsyncfilename[arch] ]:
itempath = os.path.join(self.appnamedir, item)
if os.path.exists(itempath):
# For any built arch, find out if a file exist. # For any built arch, find out if a file exist.
print(f"DEBUG: checkumming {item}.") print(f"DEBUG: checkumming {item}.")
self.__create_checksum__(item) self.__create_checksum__(item)
@ -418,7 +422,7 @@ class Build(loaih.RemoteBuild):
def publish(self): def publish(self):
"""Moves built versions to definitive storage.""" """Moves built versions to definitive storage."""
print("DEBUG: reached publish.") print("--- Publish Phase ---")
if all(self.built[arch] for arch in self.arch): if all(self.built[arch] for arch in self.arch):
# All files are already present in the full_path # All files are already present in the full_path
@ -454,6 +458,9 @@ class Build(loaih.RemoteBuild):
def generalize_and_link(self, chdir = 'default'): def generalize_and_link(self, chdir = 'default'):
"""Creates the needed generalized files if needed.""" """Creates the needed generalized files if needed."""
print("--- Generalize and Link Phase ---")
# If called with a pointed version, no generalize and link necessary. # If called with a pointed version, no generalize and link necessary.
if not self.branch_version: if not self.branch_version:
return return