core: fix exclusion of package when installing all packages

Fixes #7059
This commit is contained in:
syl20bnr 2016-10-10 01:09:05 -04:00
parent 8b4f3462c6
commit 04ebeb712d
1 changed files with 3 additions and 1 deletions

View File

@ -581,7 +581,9 @@ If TOGGLEP is nil then `:toggle' parameter is ignored."
(cfgl-package-set-property obj :min-version (version-to-list min-version)))
(when step (cfgl-package-set-property obj :step step))
(when toggle (cfgl-package-set-property obj :toggle toggle))
(cfgl-package-set-property obj :excluded (or excluded (oref obj :excluded)))
(cfgl-package-set-property obj :excluded
(and (configuration-layer/layer-usedp layer-name)
(or excluded (oref obj :excluded))))
(when location
(if (and (listp location)
(eq (car location) 'recipe)