HomeClusterLabs Projects

CTDB: fix version string with vendor trailer comparison

Description

CTDB: fix version string with vendor trailer comparison

commit 4a31eb7 should handle a -VENDOR trailer
+ e.g. 4.0.0-VendorVersion

however when using the sed from 4a31eb7 on a version string with vendor trailer e.g.

echo "4.0.0-VendorVersion" | awk '{print $NF}' | sed "s/.?:alpha:.*//"

yields

4.0.0-

after fix

echo "4.0.0rc1" | awk '{print $NF}' | sed "s/[-\.]\?:alpha:.*//"
4.0.0

echo "4.0.0-VendorVersion" | awk '{print $NF}' | sed "s/[-\.]\?:alpha:.*//"
4.0.0

echo "4.0.0.GIT.1a2b3c4d" | awk '{print $NF}' | sed "s/[-\.]\?:alpha:.*//"
4.0.0

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

Signed-off-by: Noel Power <noel.power@suse.com>

Details

Provenance
Noel Power <noel.power@suse.com>Authored on May 16 2019, 7:26 AM
Parents
rR25f2052bc077: Merge pull request #1323 from vuntz/galera-ignore-safe_to_bootstrap
Branches
Unknown
Tags
Unknown

Event Timeline