Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
1c65ded7
Commit
1c65ded7
authored
Oct 21, 2012
by
Clément Schreiner
Browse files
Fix bug in user id parsing.
(Was working only with one-uid keys.)
parent
5eb28cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/lib/gnupg.py
View file @
1c65ded7
...
...
@@ -230,13 +230,16 @@ class GnuPG(object):
lines
=
(
out
.
split
(
'
\n
'
))
key
=
None
user_ids
=
[]
for
line
in
lines
:
m
=
re
.
match
(
GPG_ADDR_PATTERN
,
line
)
if
m
is
not
None
:
user_ids
=
[]
if
(
key
is
None
and
m
.
group
(
'key_id'
)
is
not
None
):
key
=
self
.
string2key
(
m
.
group
(
'key_id'
))
if
(
m
.
group
(
'uid_name'
)
is
not
None
and
m
.
group
(
'uid_email'
)
is
not
None
):
uid_name
=
m
.
group
(
'uid_name'
)
uid_email
=
m
.
group
(
'uid_email'
)
user_id
=
GpgUserId
(
uid_name
,
uid_email
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment