From be3c124079dc0fc297d92181e80b0889aea9a944 Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Sun, 6 Aug 2017 18:56:40 -0400 Subject: [PATCH] Fix update code. --- pubs/update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pubs/update.py b/pubs/update.py index 1fb983f..daf1951 100644 --- a/pubs/update.py +++ b/pubs/update.py @@ -81,9 +81,11 @@ def update(conf, code_version, repo_version, path=None): except KeyError: pass # we don't update plugins + default_conf['plugins']['active'] = conf['plugins']['active'] 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 with open(path, 'r') as f: