apm_higher_version_installed_p (public)

 apm_higher_version_installed_p package_key version_name

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

Parameters:
package_key (required)
The package in question.
version_name (required)
The name of the currently installed version.
Returns:
The return value of this procedure doesn't really fit with its name. What it returns is:
  • -1 if there's already a higher version of the given package installed than the version_name you gave it.
  • 0 if the same version is installed as the one you supplied.
  • 1 if the version you gave is higher than the highest version installed, or no version of this package is installed.

Testcases:
apm_higher_version_installed_p
[ show source ]
Show another procedure: