mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Added config to automatically always use build server
This commit is contained in:
parent
2f5417e589
commit
c84adaafcb
@ -54,3 +54,8 @@ wiki_password = "1234"
|
||||
#machine.
|
||||
update_stats = False
|
||||
|
||||
|
||||
#Set this to true to always use a build server. This saves specifying the
|
||||
#--server option on dedicated secure build server hosts.
|
||||
build_server_always = False
|
||||
|
||||
|
@ -451,10 +451,6 @@ def parse_commandline():
|
||||
print "Force is only allowed in test mode"
|
||||
sys.exit(1)
|
||||
|
||||
if options.resetserver and not options.server:
|
||||
print "Using --resetserver without --server makes no sense"
|
||||
sys.exit(1)
|
||||
|
||||
return options, args
|
||||
|
||||
options = None
|
||||
@ -463,8 +459,15 @@ def main():
|
||||
|
||||
global options
|
||||
# Read configuration...
|
||||
global build_server_always
|
||||
build_server_always = False
|
||||
execfile('config.py', globals())
|
||||
options, args = parse_commandline()
|
||||
if build_server_always:
|
||||
options.server = True
|
||||
if options.resetserver and not options.server:
|
||||
print "Using --resetserver without --server makes no sense"
|
||||
sys.exit(1)
|
||||
|
||||
# Get all apps...
|
||||
apps = common.read_metadata(options.verbose)
|
||||
|
Loading…
Reference in New Issue
Block a user