mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 13:08:51 +08:00
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:
parent
eb20994a7e
commit
5a9923a229
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user