Fix error when package cache doesn't exist on reload-load-path

This commit is contained in:
Henrik Lissner 2018-03-02 20:52:30 -05:00
parent 57efa1b864
commit a22d5f0bb4
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -599,7 +599,8 @@ an Emacs session is running.
This isn't necessary if you use Doom's package management commands because they
call `doom//reload-load-path' remotely (through emacsclient)."
(interactive)
(delete-file doom-packages-file)
(when (file-exists-p doom-packages-file)
(delete-file doom-packages-file))
(cond ((and noninteractive (not (daemonp)))
(require 'server)
(when (server-running-p)