mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
doom-install-package: don't try to uninstall built-in packages
This commit is contained in:
@ -249,10 +249,11 @@ Used by `doom//packages-install'."
|
|||||||
"Installs package NAME with optional quelpa RECIPE (see `quelpa-recipe' for an
|
"Installs package NAME with optional quelpa RECIPE (see `quelpa-recipe' for an
|
||||||
example; the package name can be omitted)."
|
example; the package name can be omitted)."
|
||||||
(doom-initialize-packages)
|
(doom-initialize-packages)
|
||||||
(when (package-installed-p name)
|
(when (and (package-installed-p name)
|
||||||
(when (doom-package-different-backend-p name)
|
(not (package-built-in-p name)))
|
||||||
(doom-delete-package name t))
|
(if (doom-package-different-backend-p name)
|
||||||
(user-error "%s is already installed" name))
|
(doom-delete-package name t)
|
||||||
|
(user-error "%s is already installed" name)))
|
||||||
(let* ((inhibit-message (not doom-debug-mode))
|
(let* ((inhibit-message (not doom-debug-mode))
|
||||||
(plist (or plist (cdr (assq name doom-packages))))
|
(plist (or plist (cdr (assq name doom-packages))))
|
||||||
(recipe (plist-get plist :recipe))
|
(recipe (plist-get plist :recipe))
|
||||||
|
Reference in New Issue
Block a user