function.
(package-initialize): Use it to populate `package-selected-packages'.
(package-menu-execute): Clean unnecessary `and'.
+ (package--get-deps): Fix returning duplicates.
2015-02-02 Michael Albinus <michael.albinus@gmx.de>
when (assq name package-alist)
collect name))
(indirect-deps (unless (eq only 'direct)
- (apply #'append
- direct-deps
- (mapcar #'package--get-deps direct-deps)))))
+ (delete-dups
+ (cl-loop for p in direct-deps
+ append (package--get-deps p))))))
(cl-case only
(direct direct-deps)
(separate (list direct-deps indirect-deps))