1
0

Aggiunta testo per fasi. Rivista procedura.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Emiliano Vavassori 2023-01-07 01:03:21 +01:00
parent 5df2c5dbdb
commit 0a18586201

View File

@ -395,11 +395,15 @@ 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] ]:
# For any built arch, find out if a file exist. itempath = os.path.join(self.appnamedir, item)
print(f"DEBUG: checkumming {item}.") if os.path.exists(itempath):
self.__create_checksum__(item) # For any built arch, find out if a file exist.
print(f"DEBUG: checkumming {item}.")
self.__create_checksum__(item)
def __create_checksum__(self, file): def __create_checksum__(self, file):
@ -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