chiark / gitweb /
Don't limit gradle's forceversion to string literals
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 12 Jan 2015 22:47:40 +0000 (23:47 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 12 Jan 2015 23:28:19 +0000 (00:28 +0100)
fdroidserver/common.py

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