Skip to content

Commit

Permalink
Only ignore signatures if Emacs version below 27
Browse files Browse the repository at this point in the history
  • Loading branch information
leotaku committed Apr 28, 2024
1 parent 4c6434e commit fee96f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions elisp-check.el
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ documentation on the usage of PREFIX and KNOWN-BUFFERS."

(defun elisp-check--install-packages (packages)
"Install PACKAGES using the package.el package manager."
(let ((errors '()))
(let ((package-check-signature
(if (version< emacs-version "27") nil package-check-signature))
(errors '()))
(dolist (package packages)
(elisp-check-log "Installing: %s" package)
(elisp-check-condition-case error
(let ((package-check-signature nil))
(package-install package))
(package-install package)
(error
(push (elisp-check-format-error error) errors))))
(when errors
Expand Down

0 comments on commit fee96f6

Please sign in to comment.