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:
Henrik Lissner 2019-03-12 11:47:52 -04:00
parent b06eae6ccf
commit bca814cb7c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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))