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

Don't limit gradle's forceversion to string literals

This commit is contained in:
Daniel Martí 2015-01-12 23:47:40 +01:00
parent 5b868c8a4c
commit c60cca57cf

View File

@ -1315,7 +1315,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
raise BuildException("Failed to amend manifest") raise BuildException("Failed to amend manifest")
elif has_extension(path, 'gradle'): elif has_extension(path, 'gradle'):
p = FDroidPopen(['sed', '-i', p = FDroidPopen(['sed', '-i',
's/versionName *=* *"[^"]*"/versionName = "' + build['version'] + '"/g', 's/versionName *=* *.*/versionName = "' + build['version'] + '"/g',
path], output=False) path], output=False)
if p.returncode != 0: if p.returncode != 0:
raise BuildException("Failed to amend build.gradle") raise BuildException("Failed to amend build.gradle")