core: simplify construction of package objects

This commit is contained in:
syl20bnr 2016-10-10 01:08:45 -04:00
parent e5906ff895
commit 8b4f3462c6
1 changed files with 1 additions and 3 deletions

View File

@ -900,9 +900,7 @@ variable as well."
(dolist (pkg (cfgl-layer-get-packages layer))
(let* ((pkg-name (if (listp pkg) (car pkg) pkg))
(obj (configuration-layer/get-package pkg-name)))
(if obj
(setq obj (configuration-layer/make-package pkg layer-name obj))
(setq obj (configuration-layer/make-package pkg layer-name)))
(setq obj (configuration-layer/make-package pkg layer-name obj))
(configuration-layer//add-package
obj (and (cfgl-package-get-safe-owner obj) usedp)))))))