mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
doom-update-package: error if package's backend has changed
This commit is contained in:
@ -272,6 +272,8 @@ package.el as appropriate."
|
|||||||
(doom-initialize)
|
(doom-initialize)
|
||||||
(unless (package-installed-p name)
|
(unless (package-installed-p name)
|
||||||
(user-error "%s isn't installed" name))
|
(user-error "%s isn't installed" name))
|
||||||
|
(when (doom-package-different-backend-p name)
|
||||||
|
(user-error "%s's backend has changed and must be uninstalled first" name))
|
||||||
(when (or force-p (doom-package-outdated-p name))
|
(when (or force-p (doom-package-outdated-p name))
|
||||||
(let ((inhibit-message (not doom-debug-mode))
|
(let ((inhibit-message (not doom-debug-mode))
|
||||||
(desc (cadr (assq name package-alist))))
|
(desc (cadr (assq name package-alist))))
|
||||||
|
Reference in New Issue
Block a user