Don't warn about double init for :type elpa

We can assume package.el doesn't re-init the package.

* el-get.el (el-get-do-init): Don't warn if package's method is elpa.
This commit is contained in:
Noam Postavsky 2014-12-01 17:19:48 -05:00
parent 954971b1b4
commit 42a79678b5

View File

@ -373,7 +373,8 @@ called by `el-get' (usually at startup) for each installed package."
(when (and (not (eq psym 'el-get)) ; el-get recipe handles reloading (when (and (not (eq psym 'el-get)) ; el-get recipe handles reloading
(memq psym (bound-and-true-p package-activated-list)) (memq psym (bound-and-true-p package-activated-list))
(not (memq psym el-get-activated-list)) (not (memq psym el-get-activated-list))
(package-installed-p psym)) (package-installed-p psym)
(not (eq 'elpa (el-get-package-method package))))
(lwarn 'el-get :warning (lwarn 'el-get :warning
"The package `%s' has already been loaded by "The package `%s' has already been loaded by
package.el, attempting to load el-get version instead. To avoid package.el, attempting to load el-get version instead. To avoid