chiark / gitweb /
Don't match gradle plugin import lines which are commented
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 7 May 2015 22:58:52 +0000 (00:58 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 7 May 2015 22:58:52 +0000 (00:58 +0200)
fdroidserver/common.py

index 23b1ead5c982e34febde47b3cdfe4ae7cebd7174..928f1d6d414f262005fdd2a5360b4cc7d1698679 100644 (file)
@@ -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]