chiark / gitweb /
Don't use the error-prone -x method to avoid lint usage
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 10 Jul 2014 10:07:10 +0000 (12:07 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 10 Jul 2014 10:07:10 +0000 (12:07 +0200)
fdroidserver/build.py

index 0136f379a00b81c78750e65aef6b9ebfd584238d..9d7185b3be71586c2158b82aacac6973535208e9 100644 (file)
@@ -696,8 +696,9 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
         commands += ['assemble' + flavours_cmd + 'Release']
 
         # Avoid having to use lintOptions.abortOnError false
-        if thisbuild['gradlepluginver'] >= LooseVersion('0.8'):
-            commands += ['-x', 'lintVital' + flavours_cmd + 'Release']
+        if thisbuild['gradlepluginver'] >= LooseVersion('0.7'):
+            with open(os.path.join(root_dir, 'build.gradle'), "a") as f:
+                f.write("\nandroid { lintOptions { checkReleaseBuilds false } }\n")
 
         p = FDroidPopen(commands, cwd=root_dir)