chiark / gitweb /
Fix default update= on ant builds
[fdroidserver.git] / fdroidserver / common.py
index f20b0b5fc2cf7a34cec3e055aac91faefbccfd2e..5e04f362a039ee7c159d8a65af18901653969106 100644 (file)
@@ -1455,7 +1455,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
                                  (app.id, build.version), p.output)
 
     # Generate (or update) the ant build file, build.xml...
-    if build.update and build.update != ['no'] and build.method() == 'ant':
+    if build.method() == 'ant' and build.update != ['no']:
         parms = ['android', 'update', 'lib-project']
         lparms = ['android', 'update', 'project']