From: Brian Dolbec Date: Fri, 28 Jun 2013 19:40:48 +0000 (-0700) Subject: Add gpgkey, gpgfingerprint check when building the seed info X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5540e0888fd1083c71f66e02770879954ab4ab6d;p=gentoo-keys.git Add gpgkey, gpgfingerprint check when building the seed info --- diff --git a/gkeyldap/cli.py b/gkeyldap/cli.py index 32f1f87..171767b 100644 --- a/gkeyldap/cli.py +++ b/gkeyldap/cli.py @@ -303,5 +303,15 @@ class Main(object): logger.error("A valid keyid or longkeyid was not found for") logger.error("developer: %s, %s : gpgkey = %s" %(info['uid'][0], info['cn'][0], gpgkey)) + else: + for x in [2, 3]: + if not keyinfo[x]: + continue + for y in keyinfo[x]: + index = len(y.lstrip('0x')) + if y.lstrip('0x') not in [x[-index:] for x in keyinfo[5]]: + logger.error('GPGKey and/or fingerprint error in' + + ' ladap info for: ' + info['uid'][0]) + logger.error(str(keyinfo)) return keyinfo