Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ln if soft link existed #96

Merged
merged 1 commit into from
Mar 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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