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

Fix build-tools patching when it uses variables

Like:

	buildToolsVersion FOO_VERSION
This commit is contained in:
Daniel Martí 2015-10-14 19:34:30 +02:00
parent c877d4524a
commit d706cfa7d8

View File

@ -442,7 +442,7 @@ def adapt_gradle(build_dir):
if not os.path.isfile(path):
continue
logging.debug("Adapting %s at %s" % (filename, path))
common.regsub_file(r"""(\s*)buildToolsVersion([\s=]+)['"].*""",
common.regsub_file(r"""(\s*)buildToolsVersion([\s=]+).*""",
r"""\1buildToolsVersion\2'%s'""" % config['build_tools'],
path)