From d706cfa7d8a86600896960b4d9ef804d4a4bcf7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 14 Oct 2015 19:34:30 +0200 Subject: [PATCH] Fix build-tools patching when it uses variables Like: buildToolsVersion FOO_VERSION --- fdroidserver/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index aafc956a..ace906c2 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -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)