apm_version_names_compare (public)

 apm_version_names_compare version_name_1 version_name_2

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

Compare two version names for which is earlier than the other. Example:

  • apm_version_names_compare "1.2d3" "3.5b" => -1
  • apm_version_names_compare "3.5b" "3.5b" => 0
  • apm_version_names_compare "3.5b" "1.2d3" => 1

Parameters:
version_name_1 (required)
the first version name
version_name_2 (required)
the second version name
Returns:
  • -1: the first version is smallest
  • 0: they're identical
  • 1: the second version is smallest
Author:
Lars Pind

Testcases:
apm_version_names_compare
[ show source ]
Show another procedure: