chiark / gitweb /
Properly obey build --force. Fixes #29.
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 26 Aug 2014 11:49:42 +0000 (13:49 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 26 Aug 2014 11:49:42 +0000 (13:49 +0200)
fdroidserver/build.py

index b8671f8f92e9ab1d60e74fe525f12b9815e16262..b38250e4b5fd4f123b93ef24e26fe6e35ce1421f 100644 (file)
@@ -877,7 +877,7 @@ def trybuild(app, thisbuild, build_dir, output_dir, also_check_dir, srclib_dir,
             if os.path.exists(dest_also):
                 return False
 
-    if thisbuild['disable']:
+    if thisbuild['disable'] and not options.force:
         return False
 
     logging.info("Building version %s (%s) of %s" % (
@@ -1000,7 +1000,7 @@ def main():
     if options.latest:
         for app in apps.itervalues():
             for build in reversed(app['builds']):
-                if build['disable']:
+                if build['disable'] and not options.force:
                     continue
                 app['builds'] = [build]
                 break