mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-10-22 20:27:06 -04:00
Added config to automatically always use build server
This commit is contained in:
1 parent
2f5417e589
commit
c84adaafcb
2 files changed
+12
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user