mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
Fix invalid key error due to NDK versions in "revision" form (e.g. 21.4.7075529)
First element in the 'NDKS' array does not have 'revision' key, which results in 'KeyError' when accessed through subscript operator.
This commit is contained in:
parent
714ab5622e
commit
07856dc0e0
1 changed files with 1 additions and 1 deletions
|
@ -4310,7 +4310,7 @@ def _install_ndk(ndk):
|
|||
"""
|
||||
if re.match(r'[1-9][0-9.]+[0-9]', ndk):
|
||||
for ndkdict in NDKS:
|
||||
if ndk == ndkdict['revision']:
|
||||
if ndk == ndkdict.get('revision'):
|
||||
ndk = ndkdict['release']
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue