Skip to content
Snippets Groups Projects
Commit 289fd99e authored by Brendan Taylor's avatar Brendan Taylor
Browse files

remove old unencrypted secrets file

parent bd8ececb
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
datadir = '../'
version = '0.11.2.0-svn'
version = '0.11.2.1-svn'
import sys, os.path
for base in ('.', 'common'):
......
......@@ -166,6 +166,8 @@ def update_config(self, old_version, new_version):
self.update_config_to_01114()
if old < [0, 11, 1, 5] and new >= [0, 11, 1, 5]:
self.update_config_to_01115()
if old < [0, 11, 2, 1] and new >= [0, 11, 2, 1]:
self.update_config_to_01121()
gajim.logger.init_vars()
gajim.config.set('version', new_version)
......@@ -479,3 +481,16 @@ def update_config_to_01115(self):
pass
con.close()
gajim.config.set('version', '0.11.1.5')
def update_config_to_01121(self):
# remove old unencrypted secrets file
from common.configpaths import gajimpaths
new_file = gajimpaths['SECRETS_FILE']
old_file = os.path.dirname(new_file) + '/secrets'
if os.path.exists(old_file):
os.remove(old_file)
gajim.config.set('version', '0.11.2.1')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment