mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
common: allow starting without a config file
There is no reason this should be disallowed as the default config often works well when building simple apps.
This commit is contained in:
parent
feadc6a565
commit
190a2fde81
1 changed files with 2 additions and 2 deletions
|
@ -238,8 +238,8 @@ def read_config(opts, config_file='config.py'):
|
|||
with io.open(config_file, "rb") as f:
|
||||
code = compile(f.read(), config_file, 'exec')
|
||||
exec(code, None, config)
|
||||
elif len(get_local_metadata_files()) == 0:
|
||||
raise FDroidException("Missing config file - is this a repo directory?")
|
||||
else:
|
||||
logging.debug("No config.py found - using defaults.")
|
||||
|
||||
for k in ('mirrors', 'install_list', 'uninstall_list', 'serverwebroot', 'servergitroot'):
|
||||
if k in config:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue