25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Correctly sort mixed versions vX.Y and X.Y in update-deps script

This commit is contained in:
Paweł Chmielowski 2020-12-18 16:42:41 +01:00
parent 2f3063def6
commit 9c221848d7

View File

@ -204,7 +204,7 @@ sub cmp_ver {
return 1 if $ap > $bp;
return - 1;
} else {
next if $ap eq $bp;
next if $ap eq $bp or $ap eq "" or $bp eq "";
return 1 if $ap gt $bp;
return - 1;
}