diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-10-13 04:59:44 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-10-13 04:59:44 +0200 |
commit | e1a4ed67b3cf232c7a05169db32141ca0a682a11 (patch) | |
tree | 2955d21784c5b5639cc2877c9fe39eb9e909fc3a /lisp/epg-config.el | |
parent | db443618eae74822f96d9adc3c7152355ac749b3 (diff) | |
download | emacs-e1a4ed67b3cf232c7a05169db32141ca0a682a11.tar.gz |
Add -unknown to version-regexp-alist
* lisp/epg-config.el (epg-find-configuration): Remove the -unknown
hack, because it led to further problems later when comparing
versions.
* lisp/subr.el (version-regexp-alist): Rate -unknown versions the
same as -alpha releases (bug#37556).
Diffstat (limited to 'lisp/epg-config.el')
-rw-r--r-- | lisp/epg-config.el | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/epg-config.el b/lisp/epg-config.el index 4a9cc7744cb..54328290c8f 100644 --- a/lisp/epg-config.el +++ b/lisp/epg-config.el @@ -148,11 +148,7 @@ 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)) - ;; 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) - version-regexp-alist))) + (let ((entry (assq protocol program-alist))) (unless entry (error "Unknown protocol %S" protocol)) (cl-destructuring-bind (symbol . alist) |