apm_package_install_dependencies (private)
apm_package_install_dependencies [ -callback callback ] embeds extends \ provides requires version_id
Defined in packages/acs-tcl/tcl/apm-install-procs.tcl
Install all package dependencies.
- Switches:
- -callback (optional, defaults to
"apm_dummy_callback"
)- Parameters:
- embeds (required)
- extends (required)
- provides (required)
- requires (required)
- version_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: ns_log Debug "apm_package_install_dependencies: Installing dependencies.\nembeds: $embeds\nextends: $extends\nprovides: $provides\nrequires:$requires" # Delete any dependencies register for this version. db_foreach all_dependencies_for_version { select dependency_id from apm_package_dependencies where version_id = :version_id } { apm_dependency_remove $dependency_id } foreach item [lsort -unique $provides] { lassign $item interface_uri interface_version ns_log Debug "apm_package_install_dependencies: Registering dependency $interface_uri, $interface_version for $version_id" apm_interface_add $version_id $interface_uri $interface_version } foreach item [lsort -unique $embeds] { lassign $item dependency_uri dependency_version ns_log Debug "apm_package_install_dependencies: Registering dependency embeds $dependency_uri, $dependency_version for $version_id" apm_dependency_add embeds $version_id $dependency_uri $dependency_version } foreach item [lsort -unique $extends] { lassign $item dependency_uri dependency_version ns_log Debug "apm_package_install_dependencies: Registering dependency extends $dependency_uri, $dependency_version for $version_id" apm_dependency_add extends $version_id $dependency_uri $dependency_version } foreach item [lsort -unique $requires] { lassign $item dependency_uri dependency_version ns_log Debug "apm_package_install_dependencies: Registering dependency requires $dependency_uri, $dependency_version for $version_id" apm_dependency_add requires $version_id $dependency_uri $dependency_version }Generic XQL file: <fullquery name="apm_package_install_dependencies.all_dependencies_for_version"> <querytext> select dependency_id from apm_package_dependencies where version_id = :version_id </querytext> </fullquery>packages/acs-tcl/tcl/apm-install-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/apm-install-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/apm-install-procs-oracle.xql