From d7938d63b1cc6ac15e6b49e2050d93033bce5035 Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Mon, 10 Oct 2016 16:05:28 +0200 Subject: [PATCH] Check package excluded property before toggle --- core/core-configuration-layer.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-configuration-layer.el b/core/core-configuration-layer.el index 481428848..b9d8d7a52 100644 --- a/core/core-configuration-layer.el +++ b/core/core-configuration-layer.el @@ -984,8 +984,8 @@ return both used and unused packages." (not (stringp (oref pkg :location))) (or (null usedp) (and (not (null (oref pkg :owners))) - (cfgl-package-enabledp pkg) - (not (oref pkg :excluded))))))))) + (not (oref pkg :excluded)) + (cfgl-package-enabledp pkg)))))))) (defun configuration-layer//get-private-layer-dir (name) "Return an absolute path to the private configuration layer string NAME."