Skip to content

Commit 9776f3f

Browse files
committed
Removed local_recipes dir from search if not set
1 parent b7b01d7 commit 9776f3f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pythonforandroid/recipe.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,12 @@ def has_libs(self, arch, *libs):
580580

581581
@classmethod
582582
def recipe_dirs(cls, ctx):
583-
return [ctx.local_recipes,
584-
join(ctx.storage_dir, 'recipes'),
585-
join(ctx.root_dir, "recipes")]
583+
recipe_dirs = []
584+
if ctx.local_recipes is not None:
585+
recipe_dirs.append(ctx.local_recipes)
586+
recipe_dirs.extend([join(ctx.storage_dir, 'recipes'),
587+
join(ctx.root_dir, "recipes")])
588+
return recipe_dirs
586589

587590
@classmethod
588591
def list_recipes(cls, ctx):

0 commit comments

Comments
 (0)