mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Ignore non version number entries in build_tools_path
This commit is contained in:
parent
60748acb9d
commit
5c36f84430
@ -480,7 +480,7 @@ def find_apksigner():
|
|||||||
if not os.path.isdir(build_tools_path):
|
if not os.path.isdir(build_tools_path):
|
||||||
return None
|
return None
|
||||||
for f in sorted(os.listdir(build_tools_path), reverse=True):
|
for f in sorted(os.listdir(build_tools_path), reverse=True):
|
||||||
if not os.path.isdir(os.path.join(build_tools_path, f)):
|
if not os.path.isdir(os.path.join(build_tools_path, f)) or not isinstance(LooseVersion(f), int):
|
||||||
continue
|
continue
|
||||||
if LooseVersion(f) < LooseVersion(MINIMUM_APKSIGNER_BUILD_TOOLS_VERSION):
|
if LooseVersion(f) < LooseVersion(MINIMUM_APKSIGNER_BUILD_TOOLS_VERSION):
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user