1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Remove support for deprecated insertversion/insertvercode

No longer occur in metadata.
This commit is contained in:
Paul Sokolovsky 2012-02-16 22:59:24 +02:00
parent 071642155e
commit 10567fc0cc

View File

@ -736,18 +736,6 @@ def prepare_source(vcs, app, build, build_dir, extlib_dir, sdk_path, ndk_path, j
f.write(props)
f.close()
# deprecated, use forceversion/forcevercode instead
if build.has_key('insertversion'):
if subprocess.call(['sed','-i','s/' + build['insertversion'] +
'/' + build['version'] +'/g',
'AndroidManifest.xml'], cwd=root_dir) !=0:
raise BuildException("Failed to amend manifest")
if build.has_key('insertvercode'):
if subprocess.call(['sed','-i','s/' + build['insertvercode'] +
'/' + build['vercode'] +'/g',
'AndroidManifest.xml'], cwd=root_dir) !=0:
raise BuildException("Failed to amend manifest")
# Insert version code and number into the manifest if necessary...
if build.has_key('forceversion'):
if subprocess.call(['sed','-r','-i',