apm_upgrade_logic_compare (private)

 apm_upgrade_logic_compare from_to_key_1 from_to_key_2

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

Compare the from-versions in two of apm_upgrade_logic's array entries on the form 'from_version_name,to_version_name'.

Parameters:
from_to_key_1 (required)
the first key from the array in apm_upgrade_logic
from_to_key_2 (required)
the second key from the array in apm_upgrade_logic
Returns:
1 if 1 comes after 2, 0 if they are the same, -1 if 1 comes before 2.
Author:
Lars Pind

Partial Call Graph (max 5 caller/called nodes):
%3 apm_version_names_compare apm_version_names_compare (public) apm_upgrade_logic_compare apm_upgrade_logic_compare apm_upgrade_logic_compare->apm_version_names_compare

Testcases:
No testcase defined.
Source code:
    return [apm_version_names_compare  [lindex [split $from_to_key_1 ","] 0]  [lindex [split $from_to_key_2 ","] 0]]
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: