mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +02:00
Use gradle_dir, not root_dir, to fetch the plugin version
This commit is contained in:
parent
1c9ee1d3bf
commit
69da721f02
@ -1145,7 +1145,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
|||||||
if '@' in build['gradle'] and not gradlepluginver:
|
if '@' in build['gradle'] and not gradlepluginver:
|
||||||
gradle_dir = os.path.join(root_dir, build['gradle'].split('@', 1)[1])
|
gradle_dir = os.path.join(root_dir, build['gradle'].split('@', 1)[1])
|
||||||
gradle_dir = os.path.normpath(gradle_dir)
|
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:
|
for line in f:
|
||||||
match = version_regex.match(line)
|
match = version_regex.match(line)
|
||||||
if match:
|
if match:
|
||||||
|
Loading…
Reference in New Issue
Block a user