ENH update emacs installer to use new depends interface
This commit is contained in:
parent
3461904f6b
commit
7253b31405
|
@ -68,7 +68,7 @@ run_yay() {
|
||||||
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[*]}"
|
||||||
|
|
Loading…
Reference in New Issue