From e1c6b5c941e56b2a12a113554a21162091115486 Mon Sep 17 00:00:00 2001 From: debianpepper Date: Thu, 19 Oct 2023 19:18:56 +0900 Subject: [PATCH] Updated: Set the look_for_file to the index of the list Signed-off-by: debianpepper --- python_modules/finish_cleanup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python_modules/finish_cleanup.py b/python_modules/finish_cleanup.py index 92c6b416..1238ece7 100644 --- a/python_modules/finish_cleanup.py +++ b/python_modules/finish_cleanup.py @@ -47,17 +47,17 @@ def check_build_type(): def check_debian_xfce(): """ Check is a debian build is needed """ for build_version in look_for_file: - if build_version == 'deb.64xfc': + if build_version == look_for_file[0]: check_path = Path(build_version) if check_path.is_file(): process_deb_64_xfce() break - elif build_version == Path('deb.32xfc'): + elif build_version == look_for_file[1]: check_path = Path(build_version) if check_path.is_file(): process_deb_32_xfce() break - elif build_version == Path('deb.armxfc'): + elif build_version == look_for_file[2]: check_path = Path(build_version) if check_path.is_file(): process_deb_arm_xfce() @@ -70,15 +70,15 @@ def check_build_type(): def check_devuan_xfce(): """ Check is a devuan build is needed """ for build_version in look_for_file: - if build_version == 'dev.64xfc': + if build_version == look_for_file[3]: check_path = Path(build_version) if check_path.is_file(): process_dev_64_xfce() - elif build_version == Path('dev.32xfc'): + elif build_version == look_for_file[4]: check_path = Path(build_version) if check_path.is_file(): process_dev_32_xfce() - elif build_version == Path('dev.armxfc'): + elif build_version == look_for_file[5]: check_path = Path(build_version) if check_path.is_file(): process_dev_arm_xfce()