Updated: Set the look_for_file to the index of the list
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
5562ba8188
commit
e1c6b5c941
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue