Commit 1c65ded7 authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Fix bug in user id parsing.

(Was working only with one-uid keys.)
parent 5eb28cba
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment