remove old unencrypted secrets file
This commit is contained in:
parent
bd8ececb46
commit
289fd99e8e
2 changed files with 16 additions and 1 deletions
|
@ -2,7 +2,7 @@ docdir = '../'
|
||||||
|
|
||||||
datadir = '../'
|
datadir = '../'
|
||||||
|
|
||||||
version = '0.11.2.0-svn'
|
version = '0.11.2.1-svn'
|
||||||
|
|
||||||
import sys, os.path
|
import sys, os.path
|
||||||
for base in ('.', 'common'):
|
for base in ('.', 'common'):
|
||||||
|
|
|
@ -166,6 +166,8 @@ class OptionsParser:
|
||||||
self.update_config_to_01114()
|
self.update_config_to_01114()
|
||||||
if old < [0, 11, 1, 5] and new >= [0, 11, 1, 5]:
|
if old < [0, 11, 1, 5] and new >= [0, 11, 1, 5]:
|
||||||
self.update_config_to_01115()
|
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.logger.init_vars()
|
||||||
gajim.config.set('version', new_version)
|
gajim.config.set('version', new_version)
|
||||||
|
@ -479,3 +481,16 @@ class OptionsParser:
|
||||||
pass
|
pass
|
||||||
con.close()
|
con.close()
|
||||||
gajim.config.set('version', '0.11.1.5')
|
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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue