Yann Leboulanger pushed to branch gajim_0.16 at gajim / gajim

Commits:
f91e9079 by Yann Leboulanger at 2017-01-24T22:21:04+01:00
update resource with .$rand if it was the default "Gajim"

- - - - -


2 changed files:

- src/common/defs.py
- src/common/optparser.py


Changes:

=====================================
src/common/defs.py
=====================================
--- a/src/common/defs.py
+++ b/src/common/defs.py
@@ -30,7 +30,7 @@ import os.path
 docdir = '../'
 basedir = '../'
 localedir = '../po'
-version = '0.16.6'
+version = '0.16.6.1'
 
 try:
     node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,


=====================================
src/common/optparser.py
=====================================
--- a/src/common/optparser.py
+++ b/src/common/optparser.py
@@ -240,6 +240,8 @@ class OptionsParser:
             self.update_config_to_01601()
         if old < [0, 16, 4, 1] and new >= [0, 16, 4, 1]:
             self.update_config_to_01641()
+        if old < [0, 16, 6, 1] and new >= [0, 16, 6, 1]:
+            self.update_config_to_01661()
 
         gajim.logger.init_vars()
         gajim.logger.attach_cache_database()
@@ -945,3 +947,10 @@ class OptionsParser:
             gajim.config.set_per('accounts', account, 'connection_types',
                 ' '.join(connection_types))
         gajim.config.set('version', '0.16.4.1')
+
+    def update_config_to_01661(self):
+        for account in self.old_values['accounts'].keys():
+            resource = self.old_values['accounts'][account]['resource']
+            if resource.lower() == 'gajim':
+                gajim.config.set_per('accounts', account, 'resource', 
'gajim.$rand')
+        gajim.config.set('version', '0.16.6.1')



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/f91e9079cca8f6b7a0028d80f3313b60b38a1e76
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to