Skip to content

Commit

Permalink
Merge pull request #116 from manuelbua/check-before-chmod
Browse files Browse the repository at this point in the history
Fix #115
  • Loading branch information
tito committed Jun 2, 2014
2 parents 3d298b4 + f857366 commit 819a925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ def _install_android_packages(self):
# 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()
Expand Down

0 comments on commit 819a925

Please sign in to comment.