branch: elpa/age
commit 8483e55d33f473ad2b3db2e0c7e280458a6febe8
Author: Bas Alberts <[email protected]>
Commit: Bas Alberts <[email protected]>
plumbing in rage compatibility for pinentry support
---
age.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/age.el b/age.el
index f8147ee2958..e1f838b7f8d 100644
--- a/age.el
+++ b/age.el
@@ -143,6 +143,7 @@ a list of file paths to collections of private keys."
(defconst age-config--program-alist
`((Age
age-program
+ ("rage" . "0.9.0")
("age" . ,age-minimum-version)))
"Alist used to obtain the usable configuration of executables.
The first element of each entry is protocol symbol, which is
@@ -212,7 +213,7 @@ version requirement is met."
;; e.g. macports has v1.0.0 and nixos has 1.0.0
(let ((version
(let ((v (shell-command-to-string (format "%s --version" program))))
- (when (string-match "v*\\(.*\\)?\n*" v)
+ (when (string-match "^[v|rage ]*\\(.*\\)?\n*" v)
(match-string 1 v)))))
(list (cons 'program program)
(cons 'version version))))