Skip to content

Drop trailing '+' component when parsing kernel version

Some of our build machines run a build of Linux that prints '6.6.97+' when invoking uname -r. This causes toolchain_utils to fail with Error in int: invalid base-10 literal: "97+"

This patch addresses the issue by treating any trailing '+' symbols the same way trailing '-' symbols are treated (pretend they and anything following them isn't there).

Merge request reports

Loading