From f100f671db7c7644a30d83ea52be12e305eb8231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 8 Nov 2018 15:51:16 +0100 Subject: [PATCH] test-patches: allow to automatically determine flavour for rc and bpo kernels This allows to detect the current flavour (here: "amd64") for an rc kernel (here: $(uname -r) = 4.19.0-rc4-amd64). Also a bpo release is correctly detected with this change. --- debian/bin/test-patches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/bin/test-patches b/debian/bin/test-patches index cefcefab8..7ddd3b495 100755 --- a/debian/bin/test-patches +++ b/debian/bin/test-patches @@ -6,7 +6,7 @@ shopt -s extglob # Set defaults from the running kernel arch="$(dpkg --print-architecture)" kernelabi="$(uname -r)" -ff="${kernelabi#+([^-])-@(trunk|+([0-9]))-}" +ff="${kernelabi#+([^-])-@(trunk|?(rc)+([0-9])|+([0-9]).bpo.+([0-9]))-}" if [ "x$ff" != "x$kernelabi" ]; then flavour="${ff#@(openvz|rt|vserver|xen)-}" if [ "x$flavour" != "x$ff" ]; then