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.
|
#machine.
|
||||||
update_stats = False
|
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"
|
print "Force is only allowed in test mode"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if options.resetserver and not options.server:
|
|
||||||
print "Using --resetserver without --server makes no sense"
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
return options, args
|
return options, args
|
||||||
|
|
||||||
options = None
|
options = None
|
||||||
@ -463,8 +459,15 @@ def main():
|
|||||||
|
|
||||||
global options
|
global options
|
||||||
# Read configuration...
|
# Read configuration...
|
||||||
|
global build_server_always
|
||||||
|
build_server_always = False
|
||||||
execfile('config.py', globals())
|
execfile('config.py', globals())
|
||||||
options, args = parse_commandline()
|
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...
|
# Get all apps...
|
||||||
apps = common.read_metadata(options.verbose)
|
apps = common.read_metadata(options.verbose)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user