Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wusspuss
gajim
Commits
289fd99e
Commit
289fd99e
authored
17 years ago
by
Brendan Taylor
Browse files
Options
Downloads
Patches
Plain Diff
remove old unencrypted secrets file
parent
bd8ececb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/defs.py
+1
-1
1 addition, 1 deletion
src/common/defs.py
src/common/optparser.py
+15
-0
15 additions, 0 deletions
src/common/optparser.py
with
16 additions
and
1 deletion
src/common/defs.py
+
1
−
1
View file @
289fd99e
...
...
@@ -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
'
):
...
...
This diff is collapsed.
Click to expand it.
src/common/optparser.py
+
15
−
0
View file @
289fd99e
...
...
@@ -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
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment