debian codenames: Allowed for multi-digit minor version numbers; added buster codename.

Pascal J. Bourguignon [2018-03-25 00:09]
debian codenames: Allowed for multi-digit minor version numbers; added buster codename.
Filename
distribution
diff --git a/distribution b/distribution
index e2cda4c..a26d6a1 100755
--- a/distribution
+++ b/distribution
@@ -504,12 +504,13 @@ function distribution () {
         debian)
             release="$(cat "$root"/etc/debian_version)"
             case "$release" in
-            9.[0-9]) codename=stretch ;;
-            8.[0-9]) codename=jessie ;;
-            7.[0-9]) codename=wheezy ;;
-            6.[0-9]) codename=squeeze ;;
-            5.[0-9]) codename=lenny ;;
-            4.[0-9]) codename=etch ;;
+            10.[0-9]*) codename=buster ;;
+            9.[0-9]*) codename=stretch ;;
+            8.[0-9]*) codename=jessie ;;
+            7.[0-9]*) codename=wheezy ;;
+            6.[0-9]*) codename=squeeze ;;
+            5.[0-9]*) codename=lenny ;;
+            4.[0-9]*) codename=etch ;;
             3.1) codename=sarge ;;
             3.0) codename=woody ;;
             2.2) codename=potato ;;
ViewGit