Revert async package refresh

Unnecessary complexity for negligible gain.
This commit is contained in:
Henrik Lissner 2017-07-04 12:26:27 +02:00
parent f07d567036
commit ed1a79040e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -13,11 +13,7 @@
(condition-case-unless-debug ex
(progn
(message "Refreshing package archives")
(package-refresh-contents (not doom-debug-mode))
(cl-loop for i from 0
while (and package--downloads-in-progress
(<= i 10))
do (sleep-for 0 250))
(package-refresh-contents)
(persistent-soft-store 'last-pkg-refresh t "emacs" 900))
('error
(doom-refresh-clear-cache)