]> git.proxmox.com Git - qemu-server.git/commitdiff
fix #4784: helpers: cope with native versions in manager version check
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Jun 2023 11:22:36 +0000 (13:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Jun 2023 11:22:40 +0000 (13:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer/Helpers.pm

index e91f906e41da2c17ee282c9ac7e2e1e49ab365c3..df167d18d8d21f578ccd5aeb851db8df4c33f5eb 100644 (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;
     }