blob: e7f73be5909560592a3e4d1c806f3060fb7cd34c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Index: sh/functions.sh
===================================================================
--- sh/functions.sh (revision 2687)
+++ sh/functions.sh (working copy)
@@ -104,11 +104,12 @@
KV_to_int() {
[ -z $1 ] && return 1
- local KV_MAJOR=${1%%.*}
- local x=${1#*.}
+ local x=${1%%-*}
+ local KV_MAJOR=${x%%.*}
+ x=${x#*.}
local KV_MINOR=${x%%.*}
- x=${1#*.*.}
- local KV_MICRO=${x%%-*}
+ x=${x#*.}
+ local KV_MICRO=${x%%.*}
local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))
# We make version 2.2.0 the minimum version we will handle as
|