[FIX] tools/config: avoid sharing init/demo config

Theses config options should not share the same dict as `init` dict
may be modified by migration scripts to handle new module dependencies.
This commit is contained in:
Christophe Simonis
2016-10-11 16:46:32 +02:00
parent 789566a0d0
commit ecb6055b0f
+1 -1
View File
@@ -480,7 +480,7 @@ class configmanager(object):
for x in self.options['addons_path'].split(','))
self.options['init'] = opt.init and dict.fromkeys(opt.init.split(','), 1) or {}
self.options["demo"] = not opt.without_demo and self.options['init'] or {}
self.options['demo'] = not opt.without_demo and dict(self.options['init']) or {}
self.options['update'] = opt.update and dict.fromkeys(opt.update.split(','), 1) or {}
self.options['translate_modules'] = opt.translate_modules and map(lambda m: m.strip(), opt.translate_modules.split(',')) or ['all']
self.options['translate_modules'].sort()