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

Fix sed typo that broke forceversion and forcevercode

This commit is contained in:
Daniel Martí 2013-11-04 15:42:01 +01:00
parent 7c5be575c6
commit 22a02a02c4

View File

@ -1503,7 +1503,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, sdk_path,
if not os.path.isfile(path):
continue
if subprocess.call(['sed','-i',
's/android:versionName="[^"]+"/android:versionName="' + build['version'] + '"/g',
's/android:versionName="[^"]*"/android:versionName="' + build['version'] + '"/g',
path]) != 0:
raise BuildException("Failed to amend manifest")
if 'forcevercode' in build:
@ -1512,7 +1512,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, sdk_path,
if not os.path.isfile(path):
continue
if subprocess.call(['sed','-i',
's/android:versionCode="[^"]+"/android:versionCode="' + build['vercode'] + '"/g',
's/android:versionCode="[^"]*"/android:versionCode="' + build['vercode'] + '"/g',
path]) != 0:
raise BuildException("Failed to amend manifest")