1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Properly obey build --force. Fixes #29.

This commit is contained in:
Daniel Martí 2014-08-26 13:49:42 +02:00
parent 3d50ecf5fe
commit cb63a5a62b

View 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