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

Fix buildToolsVersion patching if an = is present

This commit is contained in:
Daniel Martí 2014-01-26 17:07:35 +01:00
parent c200f18bf5
commit 7125f97445

View File

@ -378,7 +378,7 @@ def adapt_gradle(build_dir):
print "Adapting build.gradle at %s" % path print "Adapting build.gradle at %s" % path
subprocess.call(['sed', '-i', subprocess.call(['sed', '-i',
's@buildToolsVersion[ ]*["\\\'][0-9\.]*["\\\']@buildToolsVersion "' 's@buildToolsVersion[ ]*[=]*[ ]*["\\\'][0-9\.]*["\\\']@buildToolsVersion "'
+ config['build_tools'] + '"@g', path]) + config['build_tools'] + '"@g', path])