core: don't configure package marked for lazy install

This commit is contained in:
syl20bnr 2016-03-26 03:23:18 -04:00
parent f70bcbcd4c
commit b7923ad1d9
2 changed files with 12 additions and 0 deletions

View File

@ -1154,6 +1154,9 @@ path."
(spacemacs-buffer/loading-animation)
(let ((pkg-name (oref pkg :name)))
(cond
((oref pkg :lazy-install)
(spacemacs-buffer/message
(format "%S ignored since it can be lazily installed." pkg-name)))
((and (oref pkg :excluded)
(not (oref pkg :protected)))
(spacemacs-buffer/message

View File

@ -795,6 +795,15 @@
(spacemacs-buffer/message (m) ((:output nil))))
(configuration-layer//configure-packages-2 `(,pkg)))))
(ert-deftest test-configure-packages-2--lazy-install-package-is-not-configured()
(let ((pkg (cfgl-package "pkg" :name 'pkg :owner 'layer :lazy-install t))
(mocker-mock-default-record-cls 'mocker-stub-record))
(mocker-let
((configuration-layer//configure-package (p) nil)
(spacemacs-buffer/loading-animation nil ((:output nil)))
(spacemacs-buffer/message (m) ((:output nil))))
(configuration-layer//configure-packages-2 `(,pkg)))))
(ert-deftest
test-configure-packages-2--local-package-w/-layer-owner-update-load-path()
(let ((pkg (cfgl-package "pkg" :name 'pkg :owner 'layer1 :location 'local))