Skip to content

Commit c19a55c

Browse files
committed
harden the test against existing distributions without an api
1 parent 54d55e8 commit c19a55c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/distribution.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def get_distribution(cls, ctx, name=None, recipes=[],
9595
# 1) Check if any existing dists meet the requirements
9696
_possible_dists = []
9797
for dist in possible_dists:
98-
if ndk_api is not None and dist.ndk_api != ndk_api:
98+
if (
99+
ndk_api is not None and dist.ndk_api != ndk_api
100+
) or dist.ndk_api is None:
99101
continue
100102
for recipe in recipes:
101103
if recipe not in dist.recipes:

0 commit comments

Comments
 (0)