8000 Merge pull request #1276 from AndreMiras/feature/ticket1185_fix_local… · upwardsw/python-for-android@cf2de54 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf2de54

Browse files
authored
Merge pull request kivy#1276 from AndreMiras/feature/ticket1185_fix_local_recipes_patching
get_recipe_dir() also handle local recipes, fixes kivy#1185
2 parents 8980826 + aed132c commit cf2de54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ def get_build_dir(self, arch):
293293
return join(self.get_build_container_dir(arch), self.name)
294294

295295
def get_recipe_dir(self):
296+
"""
297+
Returns the local recipe directory or defaults to the core recipe
298+
directory.
299+
"""
300+
if self.ctx.local_recipes is not None:
301+
local_recipe_dir = join(self.ctx.local_recipes, self.name)
302+
if exists(local_recipe_dir):
303+
return local_recipe_dir
296304
return join(self.ctx.root_dir, 'recipes', self.name)
297305

298306
# Public Recipe API to be subclassed if needed

0 commit comments

Comments
 (0)
0