From ce48e8f78db77864db6a9818a91862dc95a3d020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 8 May 2015 00:58:52 +0200 Subject: [PATCH] Don't match gradle plugin import lines which are commented --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 23b1ead5..928f1d6d 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1293,7 +1293,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver= if build['type'] == 'gradle': flavours = build['gradle'] - version_regex = re.compile(r".*'com\.android\.tools\.build:gradle:([^\.]+\.[^\.]+).*'.*") + version_regex = re.compile(r"[^/]*'com\.android\.tools\.build:gradle:([^\.]+\.[^\.]+).*'.*") gradlepluginver = None gradle_dirs = [root_dir]