* emacs-lisp/package.el (package-selected-packages): Fix :type
(package-install): Rename ARG to MARK-SELECTED.
+ (package--get-deps): Fix for indirect dependencies.
2015-02-01 Thierry Volpiatto <thierry.volpiatto@gmail.com>
when (assq name package-alist)
collect name))
(indirect-deps (unless (eq only 'direct)
- (cl-loop for p in direct-deps
- for dep = (cadr (assq p package-alist))
- when (and dep (assq p package-alist))
- append (mapcar 'car
- (package-desc-reqs
- dep))))))
+ (apply #'append
+ direct-deps
+ (mapcar #'package--get-deps direct-deps)))))
(cl-case only
(direct direct-deps)
(separate (list direct-deps indirect-deps))