Call package-initialize in el-get-elpa-update

Otherwise, `package-alist` is nil when `el-get-elpa-update-available-p`
is called, which yield another "Wrong type argument: arrayp, nil" error.
This commit is contained in:
Takafumi Arakaki 2014-03-16 15:21:00 +01:00
parent eb20994a7e
commit 5a9923a229

View File

@ -131,6 +131,8 @@ the recipe, then return nil."
(defun el-get-elpa-update (package url post-update-fun)
"Ask elpa to update given PACKAGE."
(unless package--initialized
(package-initialize t))
(package-refresh-contents)
(when (el-get-elpa-update-available-p package)
(el-get-elpa-remove package url nil)