Skip to content

Commit 5a2eba4

Browse files
committed
[dist] Fix ctx not being set for Recipe.get_recipe
1 parent fabc4b5 commit 5a2eba4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,9 @@ def get_recipe(cls, name, ctx):
712712
if not hasattr(cls, "recipes"):
713713
cls.recipes = {}
714714
if name in cls.recipes:
715+
# we already have recipe in cls.recipes,
716+
# so we update the recipe's ctx and return it
717+
cls.recipes[name].ctx = ctx
715718
return cls.recipes[name]
716719

717720
recipe_file = None

0 commit comments

Comments
 (0)