From e62a2d8826264c44096e90311672075535761cbd Mon Sep 17 00:00:00 2001 From: Ryan Pessa Date: Fri, 8 Jan 2016 13:21:53 -0600 Subject: [PATCH] fix prebuild for armeabi-v7a, make missing recipe error more informative --- pythonforandroid/recipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index 25555072dc..9b6b927881 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -448,7 +448,7 @@ def prebuild_arch(self, arch): '''Run any pre-build tasks for the Recipe. By default, this checks if any prebuild_archname methods exist for the archname of the current architecture, and runs them if so.''' - prebuild = "prebuild_{}".format(arch.arch) + prebuild = "prebuild_{}".format(arch.arch.replace('-', '_')) if hasattr(self, prebuild): getattr(self, prebuild)() else: @@ -570,7 +570,7 @@ def get_recipe(cls, name, ctx): recipe_file = None if not recipe_file: - raise IOError('Recipe folder does not exist') + raise IOError('Recipe does not exist: {}'.format(name)) mod = import_recipe('pythonforandroid.recipes.{}'.format(name), recipe_file) if len(logger.handlers) > 1: