fix #4784: helpers: cope with native versions in manager version check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-16 13:22:36 +02:00
parent 5854213953
commit 9c6eabf028

View File

@ -178,7 +178,7 @@ sub pvecfg_min_version {
return 0 if !$verstr;
if ($verstr =~ m/^(\d+)\.(\d+)-(\d+)/) {
if ($verstr =~ m/^(\d+)\.(\d+)[.-](\d+)/) {
return 1 if version_cmp($1, $major, $2, $minor, $3, $release) >= 0;
return 0;
}