apm_dependency_check_new (public)
apm_dependency_check_new -repository_array repository_array \ -package_keys package_keys
Defined in packages/acs-tcl/tcl/apm-install-procs.tcl
Checks dependencies and finds out which packages are required to install the requested packages. In case some packages cannot be installed due to failed dependencies, it returns which packages out of the requested can be installed, and which packages, either originally requested or required by those, could not be installed, and why.
- Switches:
- -repository_array (required)
- Name of an array in the caller's namespace containing the repository of available packages as returned by apm_get_package_repository.
- -package_keys (required)
- The list of package_keys of the packages requested to be installed.
- Returns:
- An array list with the following elements:
- status: 'ok' or 'failed'.
- install: If status is 'ok', this is the complete list of packages that need to be installed, in the order in which they need to be installed. If status is 'failed', the list of packages that can be installed.
- failed: If status is 'failed', an array list keyed by package_key of 2-tuples of (required-uri, required-version) of requirements that could not be satisfied.
- packages: The list of package_keys of the packages touched upon, either because they were originally requested, or because they were required. If status is 'ok', will be identical to 'install'.
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.