Fix doom update #1584
It would no-op if you responded "y" to the 'update them?' prompt, and proceed if you responded "n". Doom must be in its rebellious phase. Also relevant: #1585
This commit is contained in:
parent
22404f1ec5
commit
a301330603
1 changed files with 41 additions and 40 deletions
|
@ -166,9 +166,11 @@ a list of packages that will be updated."
|
|||
(nconc specs (async-get (pop futures))))
|
||||
(terpri)
|
||||
(if-let (specs (delq nil (cdr specs)))
|
||||
(if (or auto-accept-p
|
||||
(if (not
|
||||
(or auto-accept-p
|
||||
(y-or-n-p
|
||||
(format! "%s\n\nThere %s %d package%s available to update. Update them?"
|
||||
(format!
|
||||
"%s\n\nThere %s %d package%s available to update. Update them?"
|
||||
(mapconcat
|
||||
(lambda (spec)
|
||||
(cl-destructuring-bind (n pretime time recipe) spec
|
||||
|
@ -181,7 +183,8 @@ a list of packages that will be updated."
|
|||
"\n")
|
||||
(if (cdr specs) "are" "is")
|
||||
(length specs)
|
||||
(if (cdr specs) "s" ""))))
|
||||
(if (cdr specs) "s" "")))))
|
||||
(ignore (print! (info "Aborted update")))
|
||||
(terpri)
|
||||
(dolist (spec specs t)
|
||||
(cl-destructuring-bind (n pretime time recipe) spec
|
||||
|
@ -203,9 +206,7 @@ a list of packages that will be updated."
|
|||
(straight--build-package recipe " "))
|
||||
(with-current-buffer (straight--process-get-buffer)
|
||||
(with-silent-modifications
|
||||
(erase-buffer))))))
|
||||
(print! (info "Aborted update"))
|
||||
nil)
|
||||
(erase-buffer)))))))
|
||||
(print! (success "No packages to update"))
|
||||
nil)))
|
||||
(error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue