From b1479f9b5fe7b4d2746bc29e6378c580c4c7f210 Mon Sep 17 00:00:00 2001 From: debianpepper Date: Tue, 12 Dec 2023 13:36:18 +0900 Subject: [PATCH] Update: XFCE Build Class Signed-off-by: debianpepper --- python_modules/build_iso.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/python_modules/build_iso.py b/python_modules/build_iso.py index cbbe55ef..20431f6a 100644 --- a/python_modules/build_iso.py +++ b/python_modules/build_iso.py @@ -123,7 +123,7 @@ class BuildXfce: def build_system(self): - """ Builds the ISO XFCE Depedning on the Arch """ + """Builds the ISO XFCE Depending on the Arch""" current_working_directory = os.getcwd() dir_current = WRKING_DIR + current_working_directory logger.info(f"Building a {self.sbase}{self.sarch[1:]} bit ISO") @@ -138,18 +138,26 @@ class BuildXfce: logger.info(CFG_READY) logger.info(START_LIVEBUILD) logger.info(dir_current) - self.lb_helper() + # Build the ISO + self.run_iso_build() + # Cleanup after build + self.cleanup_helper() + + def run_iso_build(self): + """Run the ISO build process""" run_cmd = 'sudo lb build' current_working_directory = os.getcwd() os.chdir(HOME_FOLDER + FUSATO_ROOT) - # Set the build inidcator + + # Set the build indicator inflate_bubble.make_bld_xfce(self.sbase, self.sarch[1:]) - logger.info(dir_current) + logger.info(current_working_directory) + + # Execute the build command os.system(run_cmd) + logger.info(BUILD_COMPLETED) - logger.info(dir_current) - self.cleanup_helper() - logger.info(BUILD_COMPLETED) + logger.info(current_working_directory)