if not hasattr(options, 'verbose'):
options.verbose = False
- config = {
+ defconfig = {
'build_server_always': False,
'mvn3': "mvn3",
'archive_older': 0,
'stats_to_carbon': False,
'repo_maxage': 0
}
+ config = {}
+
if options.verbose:
print "Reading %s..." % config_file
execfile(config_file, config)
print "ERROR: No such directory found for %s: %s" % (key, val)
sys.exit(3)
+ for k, v in defconfig.items():
+ if k not in config:
+ config[k] = v
+
return config
def getapkname(app, build):
import subprocess
import time
from optparse import OptionParser
-from fdroidserver import common
def vagrant(params, cwd=None, printout=False):
"""Run vagrant.
help="Build from scratch, rather than attempting to update the existing server")
options, args = parser.parse_args()
-config = common.read_config(options, 'makebs.config.py')
+config = {}
+execfile('makebs.config.py', config)
if not os.path.exists('makebuildserver.py') or not os.path.exists(serverdir):
print 'This must be run from the correct directory!'