allow to use branch in python-for-android

This commit is contained in:
tshirtman 2013-01-29 13:02:14 +01:00
parent 8e96078ad1
commit 18590ddf0f

View file

@ -277,6 +277,11 @@ class TargetAndroid(Target):
cmd('git clean -dxf', cwd=pa_dir) cmd('git clean -dxf', cwd=pa_dir)
cmd('git pull origin master', 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_apache_ant()
self._install_android_sdk() self._install_android_sdk()
self._install_android_ndk() self._install_android_ndk()