Don't async refresh package contents

The performance benefit is minor and the loss of feedback is major in
case of errors.
This commit is contained in:
Henrik Lissner 2018-06-20 12:45:03 +02:00
parent 1efb0a8298
commit d4ba03791f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -44,7 +44,7 @@
(condition-case e (condition-case e
(progn (progn
(message "Refreshing package archives") (message "Refreshing package archives")
(package-refresh-contents (not doom-debug-mode)) (package-refresh-contents)
(doom-cache-set 'last-pkg-refresh t 1200)) (doom-cache-set 'last-pkg-refresh t 1200))
((debug error) ((debug error)
(doom--refresh-pkg-cache) (doom--refresh-pkg-cache)