ENH update emacs installer to use new depends interface

This commit is contained in:
Nathan Dwarshuis 2021-05-08 15:08:30 -04:00
parent 3461904f6b
commit 7253b31405
1 changed files with 4 additions and 4 deletions

View File

@ -67,10 +67,10 @@ run_yay() {
# call emacs once to initialize it # call emacs once to initialize it
if sudo -u "$home_user" emacs -batch -l "$emacs_dir/init.el"; then if sudo -u "$home_user" emacs -batch -l "$emacs_dir/init.el"; then
IFS=' ' read -r -a emacs_pkgs \ IFS=' ' read -r -a emacs_pkgs \
< <(sudo -u "$home_user" emacs -batch -l "$emacs_dir/init.el" --eval \ < <(sudo -u "$home_user" emacs -batch -l "$emacs_dir/init.el" --eval \
'(print (format "pkgs: %s" (s-join " " (nd/get-aur-dependencies t))))' \ '(print (format "pkgs: %s" (s-join " " (nd/get-dependencies (list :pacman :aur)))))' \
2>/dev/null | \ 2>/dev/null | \
sed -n -e 's/"pkgs: \(.*\)"/\1/p') sed -n -e 's/"pkgs: \(.*\)"/\1/p')
echo "Emacs requires the following system pkgs: ${emacs_pkgs[*]}" echo "Emacs requires the following system pkgs: ${emacs_pkgs[*]}"
else else
echo "Could not get list of emacs dependencies. Install them later." echo "Could not get list of emacs dependencies. Install them later."