[PATCH 9/9] UBUNTU: [Packaging] update-version -- handle forward-backport versioning

Andy Whitcroft apw at canonical.com
Mon Mar 8 15:00:04 UTC 2021


We use versions linux 5.8.0-14.15+20.04.1 for the main kernel in
forward-backport kernels.  Therefore our version could be further
suffixed: 5.8.0-14.15+20.04.1+1.  Ensure we grab the final variant
component only.

BugLink: https://bugs.launchpad.net/bugs/1918134
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 update-version | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update-version b/update-version
index f6d231b..4ee5c34 100755
--- a/update-version
+++ b/update-version
@@ -66,7 +66,7 @@ if dpkg --compare-versions "$here_version" lt "$master_version"; then
 elif dpkg --compare-versions "$here_version" eq "$master_version"; then
 	here_newversion="$master_version+1"
 else
-	minor=$(( ${here_version#*+} + 1 ))
+	minor=$(( ${here_version##*+} + 1 ))
 	here_newversion="$master_version+$minor"
 fi
 
-- 
2.29.2




More information about the kernel-team mailing list