Updated: Corrected the clean up copy

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-09-30 22:01:56 +09:00
parent 121fb8a277
commit 120228a13a
1 changed files with 22 additions and 6 deletions

View File

@ -121,6 +121,16 @@ class BuildXfce:
cmd_list = None cmd_list = None
def cleanup_helper(self):
if self.sbase == "deb":
finish_cleanup.make_check_sum()
finish_cleanup.copy_debian_xfce_based()
finish_cleanup.kill_old_iso()
else:
finish_cleanup.make_check_sum()
finish_cleanup.copy_devuan_xfce_based()
finish_cleanup.kill_old_iso()
def build_system(self): def build_system(self):
""" Builds the ISO XFCE Depedning on the Arch """ """ Builds the ISO XFCE Depedning on the Arch """
current_working_directory = os.getcwd() current_working_directory = os.getcwd()
@ -147,9 +157,7 @@ class BuildXfce:
os.system(run_cmd) os.system(run_cmd)
logger.info(BUILD_COMPLETED) logger.info(BUILD_COMPLETED)
logger.info(dir_current) logger.info(dir_current)
finish_cleanup.make_check_sum() self.cleanup_helper()
finish_cleanup.copy_debian_xfce_based()
finish_cleanup.kill_old_iso()
logger.info(BUILD_COMPLETED) logger.info(BUILD_COMPLETED)
@ -236,6 +244,16 @@ class BuildGflashback:
cmd_list = None cmd_list = None
def cleanup_helper(self):
if self.sbase == "deb":
finish_cleanup.make_check_sum()
finish_cleanup.copy_debian_gfb_based()
finish_cleanup.kill_old_iso()
else:
finish_cleanup.make_check_sum()
finish_cleanup.copy_devuan_gfb_based()
finish_cleanup.kill_old_iso()
def build_system(self): def build_system(self):
""" Builds the ISO GFB Depedning on the Arch """ """ Builds the ISO GFB Depedning on the Arch """
current_working_directory = os.getcwd() current_working_directory = os.getcwd()
@ -262,9 +280,7 @@ class BuildGflashback:
os.system(run_cmd) os.system(run_cmd)
logger.info(BUILD_COMPLETED) logger.info(BUILD_COMPLETED)
logger.info(dir_current) logger.info(dir_current)
finish_cleanup.make_check_sum() self.cleanup_helper()
finish_cleanup.copy_debian_gfb_based()
finish_cleanup.kill_old_iso()
logger.info(BUILD_COMPLETED) logger.info(BUILD_COMPLETED)