Filter directories when rebuilding straight repos

Prevents auto-generated files like .DS_Store on macOS from causing an
error.
This commit is contained in:
yuhan0 2020-08-27 23:17:18 +08:00
parent 098f10306d
commit 15779e7a16

View file

@ -490,8 +490,9 @@ If ELPA-P, include packages installed with package.el (M-x package-install)."
(and (or repos-p regraft-repos-p) (and (or repos-p regraft-repos-p)
(straight--directory-files (straight--repos-dir) nil nil 'sort)))) (straight--directory-files (straight--repos-dir) nil nil 'sort))))
(list (when builds-p (list (when builds-p
(seq-remove (doom-rpartial #'gethash straight--profile-cache) (seq-filter #'file-directory-p
(straight--directory-files (straight--build-dir) nil nil 'sort))) (seq-remove (doom-rpartial #'gethash straight--profile-cache)
(straight--directory-files (straight--build-dir) nil nil 'sort))))
(when repos-p (when repos-p
(seq-remove (doom-rpartial #'straight--checkhash straight--repo-cache) (seq-remove (doom-rpartial #'straight--checkhash straight--repo-cache)
rdirs)) rdirs))