[PATCH 6/7] builddeb: Map rc versions to use an earlier than version scheme
From: Guillem Jover
Date: Sun Sep 20 2020 - 18:48:11 EST
This makes it possible to build release candidates that will have a
version earlier than the final release.
Signed-off-by: Guillem Jover <guillem@xxxxxxxxxxx>
---
scripts/package/mkdebian | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index b98c382f967a..ed77d0948fa3 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -93,6 +93,7 @@ else
revision=$(cat .version 2>/dev/null||echo 1)
packageversion=$version-$revision
fi
+packageversion=$(echo $packageversion | sed -e 's/-rc/~rc/')
sourcename=$KDEB_SOURCENAME
packagename=linux-image-$version
kernel_headers_packagename=linux-headers-$version
--
2.28.0.297.g1956fa8f8d