mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
Remove support for deprecated insertversion/insertvercode
No longer occur in metadata.
This commit is contained in:
parent
071642155e
commit
10567fc0cc
12
common.py
12
common.py
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user