Skip to content

Commit e62a2d8

Browse files
committed
fix prebuild for armeabi-v7a, make missing recipe error more informative
1 parent 5ed46a7 commit e62a2d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)