diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 851fdea5..4af0595f 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -224,7 +224,10 @@ def fill_config_defaults(thisconfig): """ for k, v in default_config.items(): if k not in thisconfig: - thisconfig[k] = v + if isinstance(v, dict) or isinstance(v, list): + thisconfig[k] = v.copy() + else: + thisconfig[k] = v # Expand paths (~users and $vars) def expand_path(path):