mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +02:00
Properly obey build --force. Fixes #29.
This commit is contained in:
parent
3d50ecf5fe
commit
cb63a5a62b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user