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()