GnuPG2.x listed keys are now properly interpreted.
This commit is contained in:
Igor Rzegocki 2013-09-06 21:57:49 +02:00
parent 078381c2dd
commit d6aaa9f243
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ def public_keys( keyhome ):
keys = list()
for line in p.stdout.readlines():
if line[0:3] == 'uid' or line[0:3] == 'pub':
if ('<' not in line or '>' not in line):
continue
key = line.split('<')[1].split('>')[0]
if keys.count(key) == 0:
keys.append(key)