cli/upgrade: 'doom refresh' after upgrading, before updating
Fixes an issue where uninitialized packages aren't installed when 'doom update' tries to update them.
This commit is contained in:
parent
5b190c9eca
commit
570894e1c8
1 changed files with 10 additions and 10 deletions
|
@ -13,12 +13,15 @@ following shell commands:
|
||||||
bin/doom refresh
|
bin/doom refresh
|
||||||
bin/doom update"
|
bin/doom update"
|
||||||
:bare t
|
:bare t
|
||||||
(when (doom-cli-upgrade doom-auto-accept force-p)
|
(if (delq
|
||||||
(require 'core-packages)
|
nil (list
|
||||||
(doom-initialize)
|
(doom-cli-upgrade doom-auto-accept force-p)
|
||||||
(doom-initialize-packages)
|
(doom-cli-execute "refresh" (if doom-auto-accept '("-y")))
|
||||||
(when (doom-cli-packages-update)
|
(when (doom-cli-packages-update)
|
||||||
(doom-cli-reload-package-autoloads 'force))))
|
(doom-cli-reload-package-autoloads 'force)
|
||||||
|
t)))
|
||||||
|
(print! (success "Done! Restart Emacs for changes to take effect."))
|
||||||
|
(print! "Nothing to do. Doom is up-to-date!")))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -103,9 +106,6 @@ following shell commands:
|
||||||
(equal (vc-git--rev-parse "HEAD") new-rev))
|
(equal (vc-git--rev-parse "HEAD") new-rev))
|
||||||
(error "Failed to check out %s" (substring new-rev 0 10)))
|
(error "Failed to check out %s" (substring new-rev 0 10)))
|
||||||
(print! (success "Finished upgrading Doom Emacs")))
|
(print! (success "Finished upgrading Doom Emacs")))
|
||||||
(doom-cli-execute "refresh" (if auto-accept-p '("-y")))
|
t)))))
|
||||||
t)
|
|
||||||
|
|
||||||
(print! (success "Done! Restart Emacs for changes to take effect."))))))
|
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(doom-call-process "git" "remote" "remove" doom-repo-remote))))))
|
(doom-call-process "git" "remote" "remove" doom-repo-remote))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue