apm_package_upgrade_p (public)

 apm_package_upgrade_p package_key version_name

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

Parameters:
package_key (required)
version_name (required)
Returns:
1 if a version of the indicated package_key of version lower than version_name is already installed in the system, 0 otherwise.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-admin/www/apm/packages-install-3.tcl packages/acs-admin/ www/apm/packages-install-3.tcl apm_package_upgrade_p apm_package_upgrade_p packages/acs-admin/www/apm/packages-install-3.tcl->apm_package_upgrade_p packages/acs-admin/www/install/install-3.tcl packages/acs-admin/ www/install/install-3.tcl packages/acs-admin/www/install/install-3.tcl->apm_package_upgrade_p apm_highest_version_name apm_highest_version_name (public) apm_package_upgrade_p->apm_highest_version_name apm_version_names_compare apm_version_names_compare (public) apm_package_upgrade_p->apm_version_names_compare

Testcases:
No testcase defined.
Source code:
    set package_version_name [apm_highest_version_name $package_key]
    if {$package_version_name eq ""} {
        return 0
    } else {
        return [expr {[apm_version_names_compare $package_version_name $version_name] == -1}]
    }
Generic XQL file:
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

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