Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 177197
Collapse All | Expand All

(-)sh/functions.sh (-3 / +4 lines)
Lines 104-114 Link Here
104
KV_to_int() {
104
KV_to_int() {
105
	[ -z $1 ] && return 1
105
	[ -z $1 ] && return 1
106
106
107
	local KV_MAJOR=${1%%.*}
107
	local x=${1%%-*}
108
	local x=${1#*.}
108
	local KV_MAJOR=${x%%.*}
109
	x=${x#*.}
109
	local KV_MINOR=${x%%.*}
110
	local KV_MINOR=${x%%.*}
110
	x=${1#*.*.}
111
	x=${1#*.*.}
111
	local KV_MICRO=${x%%-*}
112
	local KV_MICRO=${x%%.*}
112
	local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))
113
	local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))
113
114
114
	# We make version 2.2.0 the minimum version we will handle as
115
	# We make version 2.2.0 the minimum version we will handle as

Return to bug 177197