Merge pull request #116 from manuelbua/check-before-chmod

Fix #115
This commit is contained in:
Mathieu Virbel 2014-06-02 11:44:43 +02:00
commit 819a925027

View file

@ -312,7 +312,8 @@ class TargetAndroid(Target):
# 3 pass installation.
need_refresh = False
self.buildozer.cmd('chmod ug+x {}'.format(self.android_cmd))
if not os.access(self.android_cmd, os.X_OK):
self.buildozer.cmd('chmod ug+x {}'.format(self.android_cmd))
# 1. update the tool and platform-tools if needed
packages = self._android_list_sdk()