Testing: Module Changes

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-12-12 19:46:53 +09:00
parent ea2085a79f
commit b2a69a95ad
1 changed files with 11 additions and 25 deletions

View File

@ -45,10 +45,13 @@ class BuildXfce:
Determine what base to use and then build the ISO
"""
def __init__(self, sbase, sarch):
""" init the build process"""
self.sbase = sbase
self.sarch = sarch
# Change to the root of Fusato
# then run the buils
self.change_to_fusato_root_and_build()
def change_to_fusato_root_and_build(self):
""" change to the correct folder for the build """
os.chdir(HOME_FOLDER + FUSATO_ROOT)
self.build_system()
@ -57,30 +60,13 @@ class BuildXfce:
"""
Helper for the lb setup this is shared for all builds
"""
if self.sbase == "deb":
if self.sarch[1:] == "64":
lbsetup = conf.LBSET_DEB64
lbsetup = None
if self.sbase in ["deb", "dev"]:
arch_suffix = self.sarch[1:]
if arch_suffix in ["64", "32", "arm"]:
lbsetup = getattr(conf, f"LBSET_{self.sbase.upper()}{arch_suffix}")
os.system(lbsetup)
elif self.sarch[1:] == "32":
lbsetup = conf.LBSET_DEB32
os.system(lbsetup)
elif self.sarch[1:] == "arm":
lbsetup = conf.LBSET_DEBARM
os.system(lbsetup)
else:
lbsetup = None
elif self.sbase == "dev":
if self.sarch[1:] == "64":
lbsetup = conf.LBSET_DEV64
os.system(lbsetup)
elif self.sarch[1:] == "32":
lbsetup = conf.LBSET_DEV32
os.system(lbsetup)
elif self.sarch[1:] == "arm":
lbsetup = conf.LBSET_DEVARM
os.system(lbsetup)
else:
lbsetup = None
return lbsetup
def infra_helper(self):