Quantcast

[dak/master] gpg_get_key_addresses: ignore invalid, disabled and revoked uids

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[dak/master] gpg_get_key_addresses: ignore invalid, disabled and revoked uids

Ansgar Burchardt-8
---
 daklib/utils.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/daklib/utils.py b/daklib/utils.py
index 9891871..83ece9a 100644
--- a/daklib/utils.py
+++ b/daklib/utils.py
@@ -808,6 +808,9 @@ def gpg_get_key_addresses(fingerprint):
             parts = l.split(':')
             if parts[0] not in ("uid", "pub"):
                 continue
+            if parts[1] in ("i", "d", "r"):
+                # Skip uid that is invalid, disabled or revoked
+                continue
             try:
                 uid = parts[9]
             except IndexError:
--
2.1.4

Loading...