make the keyfinder usable

This commit is contained in:
Jan Dittberner 2009-01-21 17:18:02 +01:00
parent 3fb8f80f0e
commit 3707b76c6b
2 changed files with 4 additions and 1 deletions

View file

@ -28,7 +28,8 @@ given keyring.
db = None
def _get_keyring_cache():
if db = None:
global db
if not db:
import anydbm
import pkg_resources
import os.path

View file

@ -112,6 +112,8 @@ def process_keyrings():
login = email[0:-len('@debian.org')]
_add_to_result('login:email:%s' % email, login)
_add_to_result('login:fpr:%s' % fpr, login)
_add_to_result('fpr:login:%s' % login, fpr)
_add_to_result('fpr:email:%s' % email, fpr)
_add_to_result('email:fpr:%s' % fpr, email)
if uid:
_add_to_result('name:fpr:%s' % fpr, uid)