~bkerensa/ubuntu/raring/puppet/new-upstream-release

« back to all changes in this revision

Viewing changes to lib/puppet/parser/functions/versioncmp.rb

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2010-10-21 12:52:13 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20101021125213-x5pjaatmuv0i79jv
Tags: 2.6.3~rc1-0ubuntu1
* New upstream version
* debian/control:
  - move all puppet dependencies to puppet-common since all the code is
    actually located in puppet-common. 
  - move libaugeas from a recommend to a dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
This functions returns a number:
16
16
 
17
 
* > 0 if version a is greater than version b
18
 
* == 0 if both version are equals
19
 
* < 0 if version a is less than version b
 
17
* Greater than 0 if version a is greater than version b
 
18
* Equal to 0 if both version are equals
 
19
* Less than 0 if version a is less than version b
20
20
 
21
21
Example:
22
22