cli/upgrade: don't double-update packages
And don't initialize too much of Doom before updating it.
This commit is contained in:
parent
89893719dc
commit
4ceb09c219
1 changed files with 2 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
||||||
;;; core/cli/upgrade.el -*- lexical-binding: t; -*-
|
;;; core/cli/upgrade.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(defcli! (upgrade up)
|
(defcli! (upgrade up)
|
||||||
((force-p ["-f" "--force"])
|
((force-p ["-f" "--force"]))
|
||||||
&rest args)
|
|
||||||
"Updates Doom and packages.
|
"Updates Doom and packages.
|
||||||
|
|
||||||
This requires that ~/.emacs.d is a git repo, and is the equivalent of the
|
This requires that ~/.emacs.d is a git repo, and is the equivalent of the
|
||||||
|
@ -13,6 +12,7 @@ following shell commands:
|
||||||
bin/doom clean
|
bin/doom clean
|
||||||
bin/doom refresh
|
bin/doom refresh
|
||||||
bin/doom update"
|
bin/doom update"
|
||||||
|
:bare t
|
||||||
(and (doom-cli-upgrade doom-auto-accept force-p)
|
(and (doom-cli-upgrade doom-auto-accept force-p)
|
||||||
(doom-cli-packages-update)
|
(doom-cli-packages-update)
|
||||||
(doom-cli-reload-package-autoloads 'force-p)))
|
(doom-cli-reload-package-autoloads 'force-p)))
|
||||||
|
@ -101,7 +101,6 @@ following shell commands:
|
||||||
(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" (append (if auto-accept-p '("-y")) '("-f")))
|
(doom-cli-execute "refresh" (append (if auto-accept-p '("-y")) '("-f")))
|
||||||
(doom-cli-execute "update" (if auto-accept-p '("-y")))
|
|
||||||
t)
|
t)
|
||||||
|
|
||||||
(print! (success "Done! Restart Emacs for changes to take effect."))))))
|
(print! (success "Done! Restart Emacs for changes to take effect."))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue