Skip to content

Commit

Permalink
Merge branch 'develop' (v0.37.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Dec 22, 2014
2 parents 7c412f5 + 3901e70 commit 4245feb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/config-system.el
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,10 @@ VAR is a string with value `packages', `pre-extensions' or `post-extensions'."
(when (file-exists-p pkg-file)
(config-system/load-file pkg-file)
(let* ((layer-name (symbol-name layer-sym))
(packages (eval (intern (format "%s-%s" layer-name var)))))
(dolist (pkg packages)
(puthash pkg (cons layer-sym (ht-get result pkg)) result))))))
(packages-var (intern (format "%s-%s" layer-name var))))
(when (boundp packages-var)
(dolist (pkg (eval packages-var))
(puthash pkg (cons layer-sym (ht-get result pkg)) result)))))))
(ht-copy result)))

(defun config-system/get-packages (layers)
Expand Down

0 comments on commit 4245feb

Please sign in to comment.