chiark / gitweb /
Use gradle_dir, not root_dir, to fetch the plugin version
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 19 Jun 2014 10:32:21 +0000 (12:32 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 19 Jun 2014 10:43:05 +0000 (12:43 +0200)
fdroidserver/common.py

index 92e559e1f778adc567aba33e3ce0f4e41702611f..e83f0d2b11686da2bd247b4b7039841a403e0bdd 100644 (file)
@@ -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: