mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
stop modifying default_config when running fill_config_defaults()
dicts and lists are passed by reference in assignments, so this needs to copy them instead.
This commit is contained in:
parent
45bd89b3a2
commit
153b5d4392
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue