mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Allow sdk and ndk path substitution in init command too
This commit is contained in:
parent
de75211adc
commit
20450eaaaf
1 changed files with 2 additions and 0 deletions
|
@ -720,6 +720,8 @@ def prepare_source(vcs, app, build, build_dir, extlib_dir, sdk_path, ndk_path, j
|
||||||
# Run an init command if one is required...
|
# Run an init command if one is required...
|
||||||
if build.has_key('init'):
|
if build.has_key('init'):
|
||||||
init = build['init']
|
init = build['init']
|
||||||
|
init = init.replace('$$SDK$$', sdk_path)
|
||||||
|
init = init.replace('$$NDK$$', ndk_path)
|
||||||
if verbose: print "Doing init: exec '%s' in '%s'"%(init,root_dir)
|
if verbose: print "Doing init: exec '%s' in '%s'"%(init,root_dir)
|
||||||
if subprocess.call(init, cwd=root_dir, shell=True) != 0:
|
if subprocess.call(init, cwd=root_dir, shell=True) != 0:
|
||||||
raise BuildException("Error running init command")
|
raise BuildException("Error running init command")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue