Fix update code.
This commit is contained in:
parent
d40b86a9cf
commit
be3c124079
@ -81,9 +81,11 @@ def update(conf, code_version, repo_version, path=None):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
# we don't update plugins
|
# we don't update plugins
|
||||||
|
default_conf['plugins']['active'] = conf['plugins']['active']
|
||||||
for section_name, section in conf['plugins'].items():
|
for section_name, section in conf['plugins'].items():
|
||||||
default_conf[section_name]['plugins'][section_name] = section
|
if section_name != 'active':
|
||||||
|
default_conf['plugins'][section_name] = section
|
||||||
|
default_conf['internal']['version'] = '.'.join(code_version)
|
||||||
|
|
||||||
# comparing potential changes
|
# comparing potential changes
|
||||||
with open(path, 'r') as f:
|
with open(path, 'r') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user