Modificar python_modules/build_iso.py

This commit is contained in:
manuel 2024-05-02 17:10:36 +00:00
parent de7ae21443
commit 6519be048e
1 changed files with 8 additions and 8 deletions

View File

@ -208,9 +208,9 @@ class BuildLoaded(BuildBase):
arch_suffix = self.sarch[1:] arch_suffix = self.sarch[1:]
cmd_list = None cmd_list = None
if self.sbase in ["deb", "dev"]: if self.sbase in ["deb", "dev"]:
if arch_suffix in ["64ld"]: if arch_suffix in ["64"]:
os.system(f'touch {self.sbase.upper()}.{arch_suffix}loaded') os.system(f'touch {self.sbase.upper()}.{arch_suffix}loaded')
if arch_suffix in ["64ld"]: if arch_suffix in ["64"]:
cmd_list = getattr(conf, f"build{arch_suffix}_loaded_build", []) cmd_list = getattr(conf, f"build{arch_suffix}_loaded_build", [])
for command in cmd_list: for command in cmd_list:
execute = command + '()' execute = command + '()'
@ -236,9 +236,9 @@ class BuildServer(BuildBase):
arch_suffix = self.sarch[1:] arch_suffix = self.sarch[1:]
cmd_list = None cmd_list = None
if self.sbase in ["deb", "dev"]: if self.sbase in ["deb", "dev"]:
if arch_suffix in ["64srv"]: if arch_suffix in ["64"]:
os.system(f'touch {self.sbase.upper()}.{arch_suffix}server') os.system(f'touch {self.sbase.upper()}.{arch_suffix}server')
if arch_suffix in ["64srv"]: if arch_suffix in ["64"]:
cmd_list = getattr(conf, f"build{arch_suffix}_server_build", []) cmd_list = getattr(conf, f"build{arch_suffix}_server_build", [])
for command in cmd_list: for command in cmd_list:
execute = command + '()' execute = command + '()'
@ -369,8 +369,8 @@ class Decsions:
def dloadxf(self): def dloadxf(self):
""" Arguments for the loaded xfce """ """ Arguments for the loaded xfce """
build_type_mapping = { build_type_mapping = {
'b-loadeb': ("loaded", "_64"), 'b-loadeb': ("deb", "_64"),
'b-loadev': ("loaded", "_64"), 'b-loadev': ("dev", "_64"),
} }
build_argument = self.arguments.b build_argument = self.arguments.b
@ -385,8 +385,8 @@ class Decsions:
def dserver(self): def dserver(self):
""" Arguments for the Server """ """ Arguments for the Server """
build_type_mapping = { build_type_mapping = {
'b-srvdeb': ("debsrv", "_64srv"), 'b-srvdeb': ("deb", "_64srv"),
'b-srvdev': ("debsrv", "_64srv"), 'b-srvdev': ("dev", "_64srv"),
} }
build_argument = self.arguments.b build_argument = self.arguments.b