Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yuki
gajim-plugins
Commits
4cad7462
Commit
4cad7462
authored
Apr 16, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pgp] Fix key migration
parent
0d99f3a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
pgp/backend/store.py
pgp/backend/store.py
+6
-2
No files found.
pgp/backend/store.py
View file @
4cad7462
...
...
@@ -50,9 +50,10 @@ class KeyStore:
def
_migrate
(
self
):
keys
=
{}
attached_keys
=
app
.
config
.
get_per
(
'accounts'
,
self
.
_account
,
'attached_gpg_keys'
)
.
split
()
if
attached_keys
is
None
:
'accounts'
,
self
.
_account
,
'attached_gpg_keys'
)
if
not
attached_keys
:
return
attached_keys
=
attached_keys
.
split
()
for
i
in
range
(
len
(
attached_keys
)
//
2
):
keys
[
attached_keys
[
2
*
i
]]
=
attached_keys
[
2
*
i
+
1
]
...
...
@@ -64,6 +65,9 @@ class KeyStore:
own_key_user
=
app
.
config
.
get_per
(
'accounts'
,
self
.
_account
,
'keyname'
)
if
own_key_id
:
self
.
set_own_key_data
((
own_key_id
,
own_key_user
))
attached_keys
=
app
.
config
.
set_per
(
'accounts'
,
self
.
_account
,
'attached_gpg_keys'
,
''
)
self
.
_log
.
info
(
'Migration successful'
)
@
delay_execution
(
500
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment