Testing: Update Modules

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-12-12 21:26:34 +09:00
parent 8da69b3d8f
commit d8b51795c1
1 changed files with 23 additions and 8 deletions

View File

@ -87,14 +87,29 @@ class BuildXfce:
"""
Helper for the xfce desktop shared for all builds
"""
arch_suffix = self.sarch[1:]
cmd_list = None
if arch_suffix in ["64", "32", "arm"]:
cmd_list = getattr(conf, f"build{arch_suffix}_xfce_build", [])
for command in cmd_list:
execute = command + '()'
if self.sarch[1:] == "64":
cmd_list = collections.deque(conf.build64_xfce_build)
list_size = len(cmd_list)
for _ in range(list_size):
i = cmd_list.popleft()
execute = i + '()'
exec(execute)
return cmd_list
elif self.sarch[1:] == "32":
cmd_list = collections.deque(conf.build32_xfce_build)
list_size = len(cmd_list)
for _ in range(list_size):
i = cmd_list.popleft()
execute = i + '()'
exec(execute)
elif self.sarch[1:] == "arm":
cmd_list = collections.deque(conf.buildarm_xfce_build)
list_size = len(cmd_list)
for _ in range(list_size):
i = cmd_list.popleft()
execute = i + '()'
exec(execute)
else:
cmd_list = None
def cleanup_helper(self):
@ -102,7 +117,7 @@ class BuildXfce:
finish_cleanup.make_check_sum()
finish_cleanup.check_build_type_xfce()
finish_cleanup.kill_old_iso()
def build_system(self):
""" Builds the ISO XFCE Depedning on the Arch """