Skip to content

Commit d134ab3

Browse files
committed
Merge pull request kivy#560 from kived/prebuild-fn-name
fix prebuild for armeabi-v7a, make missing recipe error more informative
2 parents 34239ca + e62a2d8 commit d134ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def prebuild_arch(self, arch):
448448
'''Run any pre-build tasks for the Recipe. By default, this checks if
449449
any prebuild_archname methods exist for the archname of the current
450450
architecture, and runs them if so.'''
451-
prebuild = "prebuild_{}".format(arch.arch)
451+
prebuild = "prebuild_{}".format(arch.arch.replace('-', '_'))
452452
if hasattr(self, prebuild):
453453
getattr(self, prebuild)()
454454
else:
@@ -570,7 +570,7 @@ def get_recipe(cls, name, ctx):
570570
recipe_file = None
571571

572572
if not recipe_file:
573-
raise IOError('Recipe folder does not exist')
573+
raise IOError('Recipe does not exist: {}'.format(name))
574574

575575
mod = import_recipe('pythonforandroid.recipes.{}'.format(name), recipe_file)
576576
if len(logger.handlers) > 1:

0 commit comments

Comments
 (0)