Check doom-packages-dir mtime

Now that package management commands update its mtime manually, this is
the most reliable method of detecting package changes.
This commit is contained in:
Henrik Lissner 2018-06-17 21:38:53 +02:00
parent faf09288ce
commit 0a20159eee
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -601,7 +601,7 @@ This should be run whenever your `doom!' block or update your packages."
(if (and (not force-p)
(not doom-emacs-changed-p)
(file-exists-p doom-package-autoload-file)
(not (file-newer-than-file-p package-user-dir doom-package-autoload-file))
(not (file-newer-than-file-p doom-packages-dir doom-package-autoload-file))
(not (ignore-errors
(cl-loop for key being the hash-keys of (doom-modules)
for path = (doom-module-path (car key) (cdr key) "packages.el")