HomeClusterLabs Projects

CRM: Fix compare_version() to actually work correctly on a regular basis

Description

CRM: Fix compare_version() to actually work correctly on a regular basis
As far as I can tell, it never worked, which is quite disturbing.

Some cases that were broken (old/incorrect rc -> new/correct rc):

  • 1.0 ? 1.1 (0 -> -1)
  • 1.0.1 ? 1.1 (0 -> -1)
  • 1.0.1 ? 1.0.6 (0 -> -1)
  • 1.3 ? 1.1.0 (-1 -> 1)
  • 1.0.5 ? 1.0.6 (0 -> -1)
  • 1.0.1 ? 1.0.8 (0 -> -1)
  • 1.0.8 ? 1.0.1 (0 -> 1)

Mercurial revision: b7e2ee5847f85c0e08e617c456789d755c90aa1d

Details

Provenance
Andrew Beekhof <andrew@beekhof.net>Authored on Jul 30 2007, 1:54 PM
Parents
rP4a4d7272fc89: PE: Update testcases to include all_stopped (added in cs: 800c2fec24ee)
Branches
Unknown
Tags
Unknown

Event Timeline