[FIX] tools: use without_demo specified in configuration file
When using the -i command line option without the --without-demo=all command line option, demo data was installed even if the configuration file has a line without_demo = all This change is safe as just above, opt.without_demo is copied into self.options['without_demo'] so we are sure to consider the 2 options. Closes #12730 Fixes #9293
This commit is contained in:
@@ -427,7 +427,8 @@ 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'] = (self.options['init']
|
||||
if not self.options['without_demo'] else {})
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user