From 69da721f021ebd1f479cd8d04af9f25931fae0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 19 Jun 2014 12:32:21 +0200 Subject: [PATCH] Use gradle_dir, not root_dir, to fetch the plugin version --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 92e559e1..e83f0d2b 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1145,7 +1145,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver= if '@' in build['gradle'] and not gradlepluginver: gradle_dir = os.path.join(root_dir, build['gradle'].split('@', 1)[1]) gradle_dir = os.path.normpath(gradle_dir) - with open(os.path.join(root_dir, 'build.gradle')) as f: + with open(os.path.join(gradle_dir, 'build.gradle')) as f: for line in f: match = version_regex.match(line) if match: