Revert async package refresh
Unnecessary complexity for negligible gain.
This commit is contained in:
parent
f07d567036
commit
ed1a79040e
1 changed files with 1 additions and 5 deletions
|
@ -13,11 +13,7 @@
|
||||||
(condition-case-unless-debug ex
|
(condition-case-unless-debug ex
|
||||||
(progn
|
(progn
|
||||||
(message "Refreshing package archives")
|
(message "Refreshing package archives")
|
||||||
(package-refresh-contents (not doom-debug-mode))
|
(package-refresh-contents)
|
||||||
(cl-loop for i from 0
|
|
||||||
while (and package--downloads-in-progress
|
|
||||||
(<= i 10))
|
|
||||||
do (sleep-for 0 250))
|
|
||||||
(persistent-soft-store 'last-pkg-refresh t "emacs" 900))
|
(persistent-soft-store 'last-pkg-refresh t "emacs" 900))
|
||||||
('error
|
('error
|
||||||
(doom-refresh-clear-cache)
|
(doom-refresh-clear-cache)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue