Avoid blind chmod on android_cmd
Check for the missing exec bit before attempting to change it instead.
This commit is contained in:
parent
aba13fd265
commit
f8573663f0
1 changed files with 2 additions and 1 deletions
|
@ -312,7 +312,8 @@ class TargetAndroid(Target):
|
||||||
# 3 pass installation.
|
# 3 pass installation.
|
||||||
need_refresh = False
|
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
|
# 1. update the tool and platform-tools if needed
|
||||||
packages = self._android_list_sdk()
|
packages = self._android_list_sdk()
|
||||||
|
|
Loading…
Add table
Reference in a new issue