Skip to content

Commit

Permalink
Don't un-exclude an excluded package
Browse files Browse the repository at this point in the history
If a layer using a package is loaded after a layer excluding it, the
exclude flag should not be overwritten.
  • Loading branch information
darkfeline committed Jun 23, 2016
1 parent 93d0170 commit 19a786e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core-configuration-layer.el
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ If TOGGLEP is non nil then `:toggle' parameter is ignored."
(obj (if obj obj (cfgl-package name-str :name name-sym))))
(when location (oset obj :location location))
(when step (oset obj :step step))
(oset obj :excluded excluded)
(oset obj :excluded (or excluded (oref obj :excluded)))
(when toggle (oset obj :toggle toggle))
;; cannot override protected packages
(unless copyp
Expand Down

0 comments on commit 19a786e

Please sign in to comment.