package-compute-transaction

package-compute-transaction is a compiled Lisp function in `package.el'.

(package-compute-transaction PACKAGES REQUIREMENTS &optional SEEN)

Return a list of packages to be installed, including PACKAGES.
PACKAGES should be a list of `package-desc'.

REQUIREMENTS should be a list of additional requirements; each
element in this list should have the form (PACKAGE VERSION-LIST),
where PACKAGE is a package name and VERSION-LIST is the required
version of that package.

This function recursively computes the requirements of the
packages in REQUIREMENTS, and returns a list of all the packages
that must be installed. Packages that are already installed are
not included in this list.

SEEN is used internally to detect infinite recursion.