Fix error when doom-packages-file doesn't exist

This commit is contained in:
Henrik Lissner 2018-03-26 03:11:29 -04:00
parent 72eb1422c5
commit adfd26bbf4
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -151,7 +151,7 @@ FORCE-P is non-nil, do it anyway.
(unless (load doom-autoload-file t t t)
(unless noninteractive
(error "No autoloads file! Run make autoloads")))
(when noninteractive
(when (and noninteractive (file-exists-p doom-packages-file))
(delete-file doom-packages-file))
(when (or force-p (not (load doom-packages-file t t t)))
;; Ensure core folders exist, otherwise we get errors