[projects/pld-builder.new] gpg: list EdDSA and ECDSA keys of a request too

arekm arekm at pld-linux.org
Mon Oct 26 17:17:41 CET 2026


commit d986565fe70d0788229dc0afbbbc874aa51a89de
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 24 18:25:35 2026 +0200

    gpg: list EdDSA and ECDSA keys of a request too
    
    get_keys() matched only RSA and DSA keys, so the key list logged for a
    rejected request was always empty for ed25519 keys.

 PLD_Builder/gpg.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/PLD_Builder/gpg.py b/PLD_Builder/gpg.py
index 5cff0be..c5c1fa9 100644
--- a/PLD_Builder/gpg.py
+++ b/PLD_Builder/gpg.py
@@ -25,7 +25,8 @@ def get_keys(buf):
         log.error("gnupg run, does gpg binary exist? : %s" % e)
         raise
 
-    rx = re.compile(r"^gpg:.*using\s[DR]SA\skey\s(?:ID\s)?(\w+)")
+    # "using RSA key ID 1234ABCD" in gpg 1, "using EDDSA key <fingerprint>" in gpg 2
+    rx = re.compile(r"^gpg:.*using\s\w+\skey\s(?:ID\s)?(\w+)")
     keys = []
 
     for l in util.to_str(d_stderr).split('\n'):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ce9feb3c796ed049b6dd260a50d94d80feb1656d



More information about the pld-cvs-commit mailing list