From 67f85546ec3bf865d368f268fdbbc121ccfd5742 Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Mon, 23 Aug 2021 09:57:20 +0300 Subject: [PATCH 1/2] [explorer/os_version] add new debian code names: bookworm and trixie --- cdist/conf/explorer/os_version | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cdist/conf/explorer/os_version b/cdist/conf/explorer/os_version index 7bc6dd6b..aea3c43f 100755 --- a/cdist/conf/explorer/os_version +++ b/cdist/conf/explorer/os_version @@ -54,6 +54,8 @@ in # sid versions don't have a number, so we decode by codename: case $(expr "$debian_version" : '\([a-z]\{1,\}\)/') in + trixie) echo 12.99 ;; + bookworm) echo 11.99 ;; bullseye) echo 10.99 ;; buster) echo 9.99 ;; stretch) echo 8.99 ;; From e1e134899811e51e4694e89e421790e41cb894bf Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Mon, 23 Aug 2021 10:44:48 +0300 Subject: [PATCH 2/2] [explorer/os_version] use 99.99 as fallback for unknown code names in */sid --- cdist/conf/explorer/os_version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/explorer/os_version b/cdist/conf/explorer/os_version index aea3c43f..bbc9e4f0 100755 --- a/cdist/conf/explorer/os_version +++ b/cdist/conf/explorer/os_version @@ -63,7 +63,7 @@ in wheezy) echo 6.99 ;; squeeze) echo 5.99 ;; lenny) echo 4.99 ;; - *) exit 1 + *) echo 99.99 ;; esac ;; *)