Skip to content

Commit

Permalink
harden the test against existing distributions without an api
Browse files Browse the repository at this point in the history
  • Loading branch information
tshirtman committed Dec 2, 2018
1 parent 842ce6b commit 8849850
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pythonforandroid/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def get_distribution(cls, ctx, name=None, recipes=[],
# 1) Check if any existing dists meet the requirements
_possible_dists = []
for dist in possible_dists:
if ndk_api is not None and dist.ndk_api != ndk_api:
if (
ndk_api is not None and dist.ndk_api != ndk_api
) or dist.ndk_api is None:
continue
for recipe in recipes:
if recipe not in dist.recipes:
Expand Down

0 comments on commit 8849850

Please sign in to comment.