Skip to content

Commit

Permalink
Merge pull request #96 from pengjia/master
Browse files Browse the repository at this point in the history
fix ln if soft link existed
  • Loading branch information
akshayaurora committed Mar 30, 2014
2 parents 744c03b + 0d328bf commit 3dfb640
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Android target
# Thanks for Renpy (again) for its install_sdk.py and plat.py in the PGS4A
# project!
#
#


ANDROID_API = '14'
Expand Down Expand Up @@ -110,7 +110,7 @@ def check_requirements(self):
if is_debian_like:
if not self.buildozer.file_exists('/usr/include/zlib.h'):
message = 'zlib headers must be installed, run: sudo apt-get install zlib1g-dev'
raise BuildozerException(message)
raise BuildozerException(message)

# Need to add internally installed ant to path for external tools
# like adb to use
Expand Down Expand Up @@ -303,7 +303,7 @@ def install_platform(self):
if not self.buildozer.file_exists(pa_dir):
system_p4a_dir = self.buildozer.config.getdefault('app', 'android.p4a_dir')
if system_p4a_dir:
cmd('ln -s {} ./python-for-android'.format(system_p4a_dir),
cmd('ln -sf {} ./python-for-android'.format(system_p4a_dir),
cwd = self.buildozer.platform_dir)
else:
cmd('git clone git://github.com/kivy/python-for-android',
Expand Down

0 comments on commit 3dfb640

Please sign in to comment.