Fix listp error when updating #1235
The async process wasn't mapping through doom-package-outdated-p, only filtered. Also ensure no less than two packages per thread are checked.
This commit is contained in:
parent
b06eae6ccf
commit
bca814cb7c
1 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@ Used by `doom-packages-update'."
|
|||
collect package))
|
||||
;; The bottleneck in this process is quelpa's version checks, so check them
|
||||
;; asynchronously.
|
||||
(cl-loop with partitions = (/ (length .quelpa) 4)
|
||||
(cl-loop with partitions = (min 2 (/ (length .quelpa) 4))
|
||||
for package-list in (seq-partition .quelpa partitions)
|
||||
do (doom-log "New thread for: %s" package-list)
|
||||
collect
|
||||
|
@ -348,7 +348,7 @@ Used by `doom-packages-update'."
|
|||
(load ,(expand-file-name "autoload/packages.el" doom-core-dir))
|
||||
(require 'package)
|
||||
(require 'quelpa)
|
||||
(cl-remove-if-not #'doom-package-outdated-p ',package-list))))
|
||||
(delq nil (mapcar #'doom-package-outdated-p ',package-list)))))
|
||||
into futures
|
||||
finally return
|
||||
(append (delq nil (mapcar #'doom-package-outdated-p .elpa))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue