cli/upgrade: always update packages
Even when Doom is up-to-date.
This commit is contained in:
parent
977d587479
commit
93876028b4
1 changed files with 18 additions and 18 deletions
|
@ -58,8 +58,8 @@ Doing so is equivalent to:
|
|||
(unless rev
|
||||
(error "Couldn't detect Doom's version. Is %s a repo?"
|
||||
(abbreviate-file-name doom-emacs-dir)))
|
||||
(when (equal current-rev rev)
|
||||
(user-error "Doom is up to date!"))
|
||||
(if (equal current-rev rev)
|
||||
(message "Doom is up to date!")
|
||||
(message "Updates for Doom are available!\n\n Old revision: %s\n New revision: %s\n"
|
||||
current-rev rev)
|
||||
(message "Comparision diff: https://github.com/hlissner/doom-emacs/compare/%s...%s\n"
|
||||
|
@ -74,8 +74,8 @@ Doing so is equivalent to:
|
|||
(error "An error occurred while checking out the latest commit\n\n%s"
|
||||
(buffer-string)))
|
||||
(unless (equal (vc-git-working-revision doom-emacs-dir) rev)
|
||||
(error "Failed to checkout latest commit.\n\n%s" (buffer-string)))
|
||||
(doom-refresh doom-auto-accept)
|
||||
(error "Failed to checkout latest commit.\n\n%s" (buffer-string))))
|
||||
(doom-refresh)
|
||||
(doom-packages-update doom-auto-accept)
|
||||
(message "Done! Please restart Emacs for changes to take effect")))
|
||||
(user-error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue