doom-update-package: error if package's backend has changed
This commit is contained in:
parent
cc3f2c76d9
commit
80d8949f91
1 changed files with 2 additions and 0 deletions
|
@ -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))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue