From 887b46d1192957c41607fce07c029f88e4d04983 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Wed, 4 Feb 2015 20:17:42 -0500 Subject: [PATCH] Retry package installation on error Fix upgrade errors thrown my package.el with some packages --- core/core-configuration-layer.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/core-configuration-layer.el b/core/core-configuration-layer.el index 131d344d2..31695f6bb 100644 --- a/core/core-configuration-layer.el +++ b/core/core-configuration-layer.el @@ -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