Skip to content

Commit 7a56105

Browse files
committed
recipe: use cp -a instead of clone (assuming git on the path is _not_ desired by default.
1 parent 050bbac commit 7a56105

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pythonforandroid/recipe.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,14 @@ def unpack(self, arch):
396396
info('P4A_{}_DIR exists, symlinking instead'.format(
397397
self.name.lower()))
398398
# AND: Currently there's something wrong if I use ln, fix this
399-
warning('Using git clone instead of symlink...fix this!')
399+
warning('Using cp -a instead of symlink...fix this!')
400400
if exists(self.get_build_dir(arch)):
401401
return
402402
shprint(sh.rm, '-rf', build_dir)
403403
shprint(sh.mkdir, '-p', build_dir)
404404
shprint(sh.rmdir, build_dir)
405405
ensure_dir(build_dir)
406-
shprint(sh.git, 'clone', user_dir, self.get_build_dir(arch))
406+
shprint(sh.cp, '-a', user_dir, self.get_build_dir(arch))
407407
return
408408

409409
if self.url is None:
@@ -1017,7 +1017,7 @@ def get_recipe_env(self, arch, with_flags_in_cc=True):
10171017
join(self.ctx.ndk_dir, 'sources', 'python',
10181018
self.ctx.python_recipe.version, 'include',
10191019
'python')) + env['CFLAGS']
1020-
1020+
10211021
return env
10221022

10231023

@@ -1044,7 +1044,7 @@ def prebuild_arch(self, arch):
10441044
# @property
10451045
# def ctx(self):
10461046
# return self._ctx
1047-
1047+
10481048
# @ctx.setter
10491049
# def ctx(self, ctx):
10501050
# self._ctx = ctx

0 commit comments

Comments
 (0)