Testing:Modules
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
c14f4b395f
commit
2f0249424c
|
@ -70,31 +70,14 @@ class BaseBuilder:
|
|||
infra.BinaryFolders(self.sbase, self.sarch)
|
||||
infra.ArchitectureFiles(self.sbase, self.sarch)
|
||||
infra.Archive(self.sbase, self.sarch)
|
||||
|
||||
def desktop_helper(self):
|
||||
if self.sarch[1:] == "64":
|
||||
cmd_list = collections.deque(self.build_list)
|
||||
list_size = len(cmd_list)
|
||||
for _ in range(list_size):
|
||||
i = cmd_list.popleft()
|
||||
execute = i + '()'
|
||||
exec(execute)
|
||||
elif self.sarch[1:] == "32":
|
||||
cmd_list = collections.deque(self.build_list)
|
||||
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(self.build_list)
|
||||
list_size = len(cmd_list)
|
||||
for _ in range(list_size):
|
||||
i = cmd_list.popleft()
|
||||
execute = i + '()'
|
||||
exec(execute)
|
||||
else:
|
||||
cmd_list = None
|
||||
|
||||
def builder_helper(self):
|
||||
cmd_list = collections.deque(self.build_list)
|
||||
list_size = len(cmd_list)
|
||||
for _ in range(list_size):
|
||||
i = cmd_list.popleft()
|
||||
execute = i + '()'
|
||||
exec(execute)
|
||||
|
||||
def cleanup_helper(self):
|
||||
finish_cleanup.make_check_sum()
|
||||
|
@ -125,19 +108,19 @@ class BaseBuilder:
|
|||
|
||||
|
||||
class BuildXfce(BaseBuilder):
|
||||
def __init__(self, sbase, sarch):
|
||||
def __init__(self, sbase, sarch, logger):
|
||||
build_list = conf.build64_xfce_build if sarch[1:] == "64" else (
|
||||
conf.build32_xfce_build if sarch[1:] == "32" else conf.buildarm_xfce_build
|
||||
)
|
||||
super().__init__(sbase, sarch, self.xfce_helper, build_list)
|
||||
super().__init__(sbase, sarch, logger, build_list)
|
||||
|
||||
|
||||
class BuildGflashback(BaseBuilder):
|
||||
def __init__(self, sbase, sarch):
|
||||
def __init__(self, sbase, sarch, logger):
|
||||
build_list = conf.build64_gfb_build if sarch[1:] == "64" else (
|
||||
conf.build32_gfb_build if sarch[1:] == "32" else conf.buildarm_gfb_build
|
||||
)
|
||||
super().__init__(sbase, sarch, self.gfb_helper, build_list)
|
||||
super().__init__(sbase, sarch, logger, build_list)
|
||||
|
||||
def readybuild():
|
||||
"""" Make Ready the bld structure If fusato exists remove it.
|
||||
|
@ -191,12 +174,12 @@ class Decisions:
|
|||
def build_iso(self, builder_class):
|
||||
""" Common method for building ISOs """
|
||||
iso_builders = {
|
||||
'b-deb64': builder_class("deb", "_64", self.logger),
|
||||
'b-deb32': builder_class("deb", "_32", self.logger),
|
||||
'b-dev64': builder_class("dev", "_64", self.logger),
|
||||
'b-dev32': builder_class("dev", "_32", self.logger),
|
||||
'b-debarm': builder_class("deb", "_arm", self.logger),
|
||||
'b-devarm': builder_class("dev", "_arm", self.logger),
|
||||
'b-deb64': builder_class("deb", "_64"),
|
||||
'b-deb32': builder_class("deb", "_32"),
|
||||
'b-dev64': builder_class("dev", "_64"),
|
||||
'b-dev32': builder_class("dev", "_32"),
|
||||
'b-debarm': builder_class("deb", "_arm"),
|
||||
'b-devarm': builder_class("dev", "_arm"),
|
||||
}
|
||||
iso_builder = iso_builders.get(self.arguments.b)
|
||||
if iso_builder:
|
||||
|
|
Loading…
Reference in New Issue