HomeClusterLabs Projects

CTDB: fix --logging/--logfile version string comparison

Description

CTDB: fix --logging/--logfile version string comparison

As per "VERSION" in the Samba/CTDB source tree, versions may have:

  • a beta/rc/etc string immediately following the third version component + e.g. 4.0.0rc1
  • a -VENDOR trailer + e.g. 4.0.0-VendorVersion
  • a .GIT.$sha hash trailers + e.g. 4.0.0.GIT.1a2b3c4d

Trim any of these possible strings with sed prior to performing the
--logging/--logfile version comparison.

Fixes: https://github.com/ClusterLabs/resource-agents/issues/1185

Signed-off-by: David Disseldorp <ddiss@suse.de>

Details

Provenance
David Disseldorp <ddiss@suse.de>Authored on Oct 10 2018, 6:57 PM
Parents
rRf3f81a2fe3c5: Merge pull request #1233 from krig/python-dev
Branches
Unknown
Tags
Unknown

Event Timeline