chiark / gitweb /
Fix default update= on ant builds
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 2 Dec 2015 19:16:25 +0000 (20:16 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 2 Dec 2015 19:16:25 +0000 (20:16 +0100)
fdroidserver/common.py
fdroidserver/metadata.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']
 
index a06d190537e6a960fd96e38eff5ed349cc3750b0..d1aab68a263cd64b0958eac76a34cbf8426fad34 100644 (file)
@@ -312,7 +312,7 @@ class Build():
         for f in ['maven', 'gradle', 'kivy']:
             if self.get_flag(f):
                 return f
-        if build.output:
+        if self.output:
             return 'raw'
         return 'ant'