mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -601,7 +601,7 @@ This should be run whenever your `doom!' block or update your packages."
|
|||||||
(if (and (not force-p)
|
(if (and (not force-p)
|
||||||
(not doom-emacs-changed-p)
|
(not doom-emacs-changed-p)
|
||||||
(file-exists-p doom-package-autoload-file)
|
(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
|
(not (ignore-errors
|
||||||
(cl-loop for key being the hash-keys of (doom-modules)
|
(cl-loop for key being the hash-keys of (doom-modules)
|
||||||
for path = (doom-module-path (car key) (cdr key) "packages.el")
|
for path = (doom-module-path (car key) (cdr key) "packages.el")
|
||||||
|
Reference in New Issue
Block a user