apm_get_installed_versions (public)

 apm_get_installed_versions -array array

Defined in packages/acs-tcl/tcl/apm-procs.tcl

Sets the current installed version of packages installed on this system in an array keyed by package_key.

Switches:
-array (required)
Name of array in caller's namespace where you want this set

Partial Call Graph (max 5 caller/called nodes):
%3 test_files__check_xql_files files__check_xql_files (test acs-tcl) apm_get_installed_versions apm_get_installed_versions test_files__check_xql_files->apm_get_installed_versions test_files__page_contracts files__page_contracts (test acs-tcl) test_files__page_contracts->apm_get_installed_versions test_files__tcl_file_syntax_errors files__tcl_file_syntax_errors (test acs-tcl) test_files__tcl_file_syntax_errors->apm_get_installed_versions test_files__trailing_whitespace files__trailing_whitespace (test acs-tcl) test_files__trailing_whitespace->apm_get_installed_versions db_foreach db_foreach (public) apm_get_installed_versions->db_foreach apm_get_installed_provides apm_get_installed_provides (public) apm_get_installed_provides->apm_get_installed_versions apm_get_package_repository apm_get_package_repository (public) apm_get_package_repository->apm_get_installed_versions packages/acs-admin/www/apm/packages-install-2.tcl packages/acs-admin/ www/apm/packages-install-2.tcl packages/acs-admin/www/apm/packages-install-2.tcl->apm_get_installed_versions packages/acs-admin/www/install/install.tcl packages/acs-admin/ www/install/install.tcl packages/acs-admin/www/install/install.tcl->apm_get_installed_versions

Testcases:
files__tcl_file_syntax_errors, files__check_xql_files, files__trailing_whitespace, files__page_contracts
Source code:
    upvar 1 $array installed_version

    db_foreach installed_packages {
        select package_key, version_name
        from   apm_package_versions
        where  enabled_p = 't'
    } {
        set installed_version($package_key$version_name
    }
Generic XQL file:
packages/acs-tcl/tcl/apm-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: