mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
Maintiain android update project behaviour in new platform tools
This commit is contained in:
parent
14bc39010b
commit
775e1e245a
1 changed files with 7 additions and 0 deletions
|
@ -427,6 +427,13 @@ def prepare_source(vcs, app, build, build_dir, sdk_path, ndk_path, javacc_path,
|
||||||
if build.has_key('target'):
|
if build.has_key('target'):
|
||||||
parms.append('-t')
|
parms.append('-t')
|
||||||
parms.append(build['target'])
|
parms.append(build['target'])
|
||||||
|
# Newer versions of the platform tools don't replace the build.xml
|
||||||
|
# file as they always did previously, they spew out a nanny-like
|
||||||
|
# warning and tell you to do it manually. The following emulates
|
||||||
|
# the original behaviour...
|
||||||
|
buildxml = os.path.join(root_dir, 'build.xml')
|
||||||
|
if os.path.exists(buildxml):
|
||||||
|
os.remove(buildxml)
|
||||||
if subprocess.call(parms, cwd=root_dir) != 0:
|
if subprocess.call(parms, cwd=root_dir) != 0:
|
||||||
raise BuildException("Failed to update project")
|
raise BuildException("Failed to update project")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue