mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 21:14:59 +00:00
helpers: future proof and allow also checking releases
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9c6eabf028
commit
e17312c99f
@ -178,8 +178,8 @@ sub pvecfg_min_version {
|
||||
|
||||
return 0 if !$verstr;
|
||||
|
||||
if ($verstr =~ m/^(\d+)\.(\d+)[.-](\d+)/) {
|
||||
return 1 if version_cmp($1, $major, $2, $minor, $3, $release) >= 0;
|
||||
if ($verstr =~ m/^(\d+)\.(\d+)(?:[.-](\d+))/) {
|
||||
return 1 if version_cmp($1, $major, $2, $minor, $3 // 0, $release) >= 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user