mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-17 22:47:16 -04:00
Fix build-tools patching when it uses variables
Like: buildToolsVersion FOO_VERSION
This commit is contained in:
@@ -442,7 +442,7 @@ def adapt_gradle(build_dir):
|
|||||||
if not os.path.isfile(path):
|
if not os.path.isfile(path):
|
||||||
continue
|
continue
|
||||||
logging.debug("Adapting %s at %s" % (filename, path))
|
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'],
|
r"""\1buildToolsVersion\2'%s'""" % config['build_tools'],
|
||||||
path)
|
path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user