> + ver_test \ > + "${KV_MAJOR:-0}.${KV_MINOR:-0}.${KV_PATCH:-0}" \ > + "${operator}" \ > + "${1:-${KV_MAJOR:-0}}.${2:-${KV_MINOR:-0}}.${3:-${KV_PATCH:-0}}"
I've added fallbacks to 0, because it turns out that these components can be empty. There may also be a problem in detect_version(). For gentoo-sources-5.10.52 I get: KV_MAJOR=5 KV_MINOR=10 KV_PATCH=52 but for git-sources-5.14_rc7: KV_MAJOR=5 KV_MINOR= # empty KV_PATCH=14 According to a comment in detect_version() the intended behaviour is "if KV_MAJOR >= 3, then we have no more KV_MINOR" but looks like that isn't always happening. Ulrich
signature.asc
Description: PGP signature