From 18590ddf0f2350007a8da01c176ea823905839f8 Mon Sep 17 00:00:00 2001 From: tshirtman Date: Tue, 29 Jan 2013 13:02:14 +0100 Subject: [PATCH] allow to use branch in python-for-android --- buildozer/targets/android.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index 5ae6dc6..2a5c496 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -277,6 +277,11 @@ class TargetAndroid(Target): cmd('git clean -dxf', cwd=pa_dir) cmd('git pull origin master', cwd=pa_dir) + source = self.buildozer.config.get('app', 'android.branch') + if source: + cmd('git checkout --track -b %s origin/%s' % (source, source), + cwd=pa_dir) + self._install_apache_ant() self._install_android_sdk() self._install_android_ndk()