Retry package installation on error

Fix upgrade errors thrown my package.el with some packages
This commit is contained in:
syl20bnr 2015-02-04 20:17:42 -05:00
parent 387bd6b1b9
commit 887b46d119

View file

@ -468,9 +468,13 @@ If PRE is non nil then `layer-pre-extensions' is read instead of
(format "--> updating package %s... [%s/%s]"
pkg upgraded-count upgrade-count) t)
(redisplay)
(ignore-errors
(configuration-layer//package-delete pkg)
(package-install pkg)))
(configuration-layer//package-delete pkg)
(condition-case err (package-install pkg)
('error
(message (format
(concat "An error occurred during the update of "
"this package %s, retrying...") err))
(package-install pkg))))
(spacemacs/append-to-buffer
(format "\n--> %s packages updated.\n" upgraded-count))
(spacemacs/append-to-buffer