call some upgrade config function that were not in 0.12.5 and are needed for 0.13
This commit is contained in:
parent
90fd7f6e68
commit
3f629341f6
|
@ -201,6 +201,7 @@ class OptionsParser:
|
|||
if old < [0, 12, 3, 1] and new >= [0, 12, 3, 1]:
|
||||
self.update_config_to_01231()
|
||||
if old < [0, 12, 5, 1] and new >= [0, 12, 5, 1]:
|
||||
self.update_config_from_0125()
|
||||
self.update_config_to_01251()
|
||||
if old < [0, 12, 5, 2] and new >= [0, 12, 5, 2]:
|
||||
self.update_config_to_01252()
|
||||
|
@ -718,6 +719,14 @@ class OptionsParser:
|
|||
con.close()
|
||||
gajim.config.set('version', '0.12.3.1')
|
||||
|
||||
def update_config_from_0125(self):
|
||||
# All those functions need to be called for 0.12.5 to 0.13 transition
|
||||
self.update_config_to_01211()
|
||||
self.update_config_to_01213()
|
||||
self.update_config_to_01214()
|
||||
self.update_config_to_01215()
|
||||
self.update_config_to_01231()
|
||||
|
||||
def update_config_to_01251(self):
|
||||
back = os.getcwd()
|
||||
os.chdir(logger.LOG_DB_FOLDER)
|
||||
|
|
Loading…
Reference in New Issue