From c6c974f9a6735a3548c5dfdf9a68c309fc48ceeb Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Thu, 21 Nov 2024 14:09:36 +0800 Subject: [PATCH] fix: Emacs 26.x --- lisp/_prepare.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/_prepare.el b/lisp/_prepare.el index 00239a70..73275280 100644 --- a/lisp/_prepare.el +++ b/lisp/_prepare.el @@ -569,8 +569,8 @@ scope of the dependencies (it's either `production' or `development')." (eask-defvc< 27 (eask-pkg-init)) ; XXX: remove this after we drop 26.x (when eask-depends-on-recipe-p (eask-log "Installing required external packages...") - (eask-with-archives '("gnu" "melpa") - (eask-package-install 'package-build)) + (eask-archive-install-packages '("gnu" "melpa") + 'package-build) (eask-with-progress "Building temporary archives (this may take a while)... " (eask-with-verbosity 'debug (github-elpa-build)) @@ -658,6 +658,7 @@ Argument BODY are forms for execution." (defun eask-archive-install-packages (archives names) "Install package NAMES with ARCHIVES setup." + (eask-defvc< 27 (eask-pkg-init)) ; XXX: remove this after we drop 26.x (when-let* ((names (eask-listify names)) ((cl-some (lambda (pkg) (not (package-installed-p pkg))) names))) (eask-with-archives archives