From 7253b314058aeadc3aed77b59ae141fc980ee3fc Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sat, 8 May 2021 15:08:30 -0400 Subject: [PATCH] ENH update emacs installer to use new depends interface --- dot_bin/executable_bootstrap_pkgs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dot_bin/executable_bootstrap_pkgs b/dot_bin/executable_bootstrap_pkgs index 0fa8706..d99a2d2 100644 --- a/dot_bin/executable_bootstrap_pkgs +++ b/dot_bin/executable_bootstrap_pkgs @@ -67,10 +67,10 @@ run_yay() { # call emacs once to initialize it if sudo -u "$home_user" emacs -batch -l "$emacs_dir/init.el"; then IFS=' ' read -r -a emacs_pkgs \ - < <(sudo -u "$home_user" emacs -batch -l "$emacs_dir/init.el" --eval \ - '(print (format "pkgs: %s" (s-join " " (nd/get-aur-dependencies t))))' \ - 2>/dev/null | \ - sed -n -e 's/"pkgs: \(.*\)"/\1/p') + < <(sudo -u "$home_user" emacs -batch -l "$emacs_dir/init.el" --eval \ + '(print (format "pkgs: %s" (s-join " " (nd/get-dependencies (list :pacman :aur)))))' \ + 2>/dev/null | \ + sed -n -e 's/"pkgs: \(.*\)"/\1/p') echo "Emacs requires the following system pkgs: ${emacs_pkgs[*]}" else echo "Could not get list of emacs dependencies. Install them later."