Commit 42ba6200 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Allow finding gpg2 binaries when gpg2 has an "unknown" version string

* lisp/epg-config.el (epg-find-configuration): Allow finding a
usable configuration even if the version string looks like "gpg
(GnuPG) 2.2.15-unknown" (bug#35629).
parent f5fa0c90
Pipeline #2986 passed with stage
in 58 minutes and 21 seconds
......@@ -148,7 +148,11 @@ Otherwise, it tries the programs listed in the entry until the
version requirement is met."
(unless program-alist
(setq program-alist epg-config--program-alist))
(let ((entry (assq protocol program-alist)))
(let ((entry (assq protocol program-alist))
;; In many gnupg distributions (especially on Windows), the
;; version string is "gpg (GnuPG) 2.2.15-unknown" or the like.
(version-regexp-alist (cons '("^[-._+ ]?unknown$" . -4)
(unless entry
(error "Unknown protocol %S" protocol))
(cl-destructuring-bind (symbol . alist)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment