From 29d97bcfaa7c45fe73deee7b1b0596fe60b2e4ec Mon Sep 17 00:00:00 2001 From: Ryan Pessa Date: Fri, 8 Jan 2016 13:22:26 -0600 Subject: [PATCH] remove build dir before copying for IncludedFilesBehaviour --- pythonforandroid/recipe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index 25555072dc..3fb7367dee 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -591,6 +591,7 @@ def prepare_build_dir(self, arch): if self.src_filename is None: print('IncludedFilesBehaviour failed: no src_filename specified') exit(1) + shprint(sh.rm, '-rf', self.get_build_dir(arch)) shprint(sh.cp, '-a', join(self.get_recipe_dir(), self.src_filename), self.get_build_dir(arch))