From f2b89ce3c1f65c3e78340e41ee7e644f59666ec0 Mon Sep 17 00:00:00 2001 From: debianpepper Date: Thu, 14 Dec 2023 11:54:40 +0900 Subject: [PATCH] Testing: Modules Signed-off-by: debianpepper --- python_modules/build_iso.py | 7 +++++-- python_modules/conf.py | 1 + python_modules/finish_cleanup.py | 14 ++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/python_modules/build_iso.py b/python_modules/build_iso.py index cb4abf9c..96e73aed 100644 --- a/python_modules/build_iso.py +++ b/python_modules/build_iso.py @@ -112,8 +112,8 @@ class BuildBase: class BuildXfce(BuildBase): """ This class will ensure the xfce builds are built """ def __init__(self, sbase, sarch): - """ i - nit the building, super will + """ + init the building, super will ensure that the method resolution order (MRO) is followed correctly, allowing for a smooth inheritance hierarchy. """ @@ -123,6 +123,9 @@ class BuildXfce(BuildBase): """ The helper functions to ensure the xfce 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}xfc') if arch_suffix in ["64", "32", "arm"]: cmd_list = getattr(conf, f"build{arch_suffix}_xfce_build", []) for command in cmd_list: diff --git a/python_modules/conf.py b/python_modules/conf.py index 3cd77a45..8c566e68 100644 --- a/python_modules/conf.py +++ b/python_modules/conf.py @@ -164,6 +164,7 @@ GENERAL_SHARED_LIST = ('alsa-utils\n' 'python3-pip\n' 'python3-tk\n' 'python3-pil.imagetk\n' + 'python3-xapian\n' 'synaptic\n' 'system-config-printer\n' 'simple-scan\n' diff --git a/python_modules/finish_cleanup.py b/python_modules/finish_cleanup.py index 85557ea1..0ea554b5 100644 --- a/python_modules/finish_cleanup.py +++ b/python_modules/finish_cleanup.py @@ -48,7 +48,6 @@ def process_iso(base, arch, desktop): src_iso = files rdes = f"{BASE_NAME}-{base}_{arch}_{desktop.lower()}{today}.iso" des_iso =f"{BASE_DESTINATION}/{base.lower()}{arch}/{desktop.lower()}" - os.system(f'touch {base}.{arch}{desktop.lower()}') os.rename(src_iso, rdes) shutil.copy(rdes, des_iso) @@ -56,7 +55,6 @@ def process_iso(base, arch, desktop): src_sum = files rdes_sum = f"{BASE_NAME}{base.capitalize()}_{arch}_{desktop.lower()}-sha512.checksum" des_sum = f"{BASE_DESTINATION}/{base.lower()}{arch}/{desktop.lower()}" - os.rename(src_sum, rdes_sum) shutil.copy(rdes_sum, des_sum) @@ -67,12 +65,12 @@ def check_build_type(): os.chdir(HOME_FOLDER + FUSATO_ROOT) directory_path = HOME_FOLDER + FUSATO_ROOT file_function_mapping = { - 'deb.64xfce': ('deb', '64', 'XFCE'), - 'deb.32xfce': ('deb', '32', 'XFCE'), - 'deb.armxfce': ('deb', 'arm', 'XFCE'), - 'dev.64xfce': ('dev', '64', 'XFCE'), - 'dev.32xfce': ('dev', '32', 'XFCE'), - 'dev.armxfce': ('dev', 'arm', 'XFCE'), + 'deb.64xfc': ('deb', '64', 'XFCE'), + 'deb.32xfc': ('deb', '32', 'XFCE'), + 'deb.armxfc': ('deb', 'arm', 'XFCE'), + 'dev.64xfc': ('dev', '64', 'XFCE'), + 'dev.32xfc': ('dev', '32', 'XFCE'), + 'dev.armxfc': ('dev', 'arm', 'XFCE'), 'deb.64gfb': ('deb', '64', 'GFB'), 'deb.32gfb': ('deb', '32', 'GFB'), 'deb.armgfb': ('deb', 'arm', 'GFB'),