mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Properly obey build --force. Fixes #29.
This commit is contained in:
parent
3d50ecf5fe
commit
cb63a5a62b
1 changed files with 2 additions and 2 deletions
|
@ -877,7 +877,7 @@ def trybuild(app, thisbuild, build_dir, output_dir, also_check_dir, srclib_dir,
|
||||||
if os.path.exists(dest_also):
|
if os.path.exists(dest_also):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if thisbuild['disable']:
|
if thisbuild['disable'] and not options.force:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
logging.info("Building version %s (%s) of %s" % (
|
logging.info("Building version %s (%s) of %s" % (
|
||||||
|
@ -1000,7 +1000,7 @@ def main():
|
||||||
if options.latest:
|
if options.latest:
|
||||||
for app in apps.itervalues():
|
for app in apps.itervalues():
|
||||||
for build in reversed(app['builds']):
|
for build in reversed(app['builds']):
|
||||||
if build['disable']:
|
if build['disable'] and not options.force:
|
||||||
continue
|
continue
|
||||||
app['builds'] = [build]
|
app['builds'] = [build]
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue