Update: Openbox build updated

Completed the addtion o fthe Openbox build inthe pipe line
Will start the testing now.

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2024-01-09 12:44:47 +09:00
parent dfe7c13b25
commit 8109f01bc7
3 changed files with 38 additions and 5 deletions

View File

@ -161,6 +161,34 @@ class BuildGflashback(BuildBase):
return cmd_list
class BuildOpenbox(BuildBase):
""" This class will ensure the openbox builds are built """
def __init__(self, sbase, sarch):
"""
init the building, super will
ensure that the method resolution order (MRO) is followed
correctly, allowing for a smooth inheritance hierarchy
"""
super().__init__(sbase, sarch, self.opb_helper)
def opb_helper(self):
"""
The helper functions to ensure the openbox requirements are
used
"""
arch_suffix = self.sarch[1:]
cmd_list = None
if self.sbase in ["deb", "dev"]:
if arch_suffix in ["64", "32", "arm"]:
os.system(f'touch {self.sbase.upper()}.{arch_suffix}opb')
if arch_suffix in ["64", "32", "arm"]:
cmd_list = getattr(conf, f"build{arch_suffix}_opb_build", [])
for command in cmd_list:
execute = command + '()'
exec(execute)
return cmd_list
def readybuild():
"""" Make Ready the bld structure If fusato exists remove it.
and recreate it, otherwise just make a new folder named
@ -235,8 +263,6 @@ class Decsions:
BuildXfce(*build_type_mapping[build_argument])
else:
logger.critical("You have not specified a build to process!")
def dgnomefb(self):
@ -272,8 +298,8 @@ class Decsions:
build_argument = self.arguments.b
if build_argument in build_type_mapping:
pass
#readybuild()
#BuildGflashback(*build_type_mapping[build_argument])
readybuild()
BuildOpenbox(*build_type_mapping[build_argument])
else:
logger.critical("You have not specified a build to process!")

View File

@ -36,6 +36,7 @@ def make_check_sum():
gen_sum = sha + fiso + ' >' + fiso + ext
os.system(gen_sum)
def process_iso(base, arch, desktop):
"""
Process the ISO for a given base, architecture, and desktop.

View File

@ -123,9 +123,15 @@ def set_xfce():
def set_gfb():
""" Create the list for the xfce xfce list"""
""" Create the list for the gnomeflashback list"""
make_package_list('gfb.list.chroot', conf.GNOME_FLASHBACK_LIST, mode='x')
def set_opb():
""" Create the list for the openbox list"""
make_package_list('opb.list.chroot', conf.OPENBOX_LIST, mode='x')
# CHROOT Specific
def set_chroot_grub_64():
""" Append the grub list for 64 bit grub"""