]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix detect_distribution on ubuntu 452/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 19 Jul 2020 10:12:54 +0000 (11:12 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 19 Jul 2020 10:12:54 +0000 (11:12 +0100)
mkosi

diff --git a/mkosi b/mkosi
index 835adb136691a2ef583b6ae2ecb66dd6aeb0b0d9..ff601c9211eb4262788dfe2981001854f4b1b822 100755 (executable)
--- a/mkosi
+++ b/mkosi
@@ -4046,7 +4046,7 @@ def detect_distribution() -> Tuple[Optional[Distribution], Optional[str]]:
                 if d is not None:
                     break
 
-    if d == Distribution.debian and (version_codename or extracted_codename):
+    if (d == Distribution.debian or d == Distribution.ubuntu) and (version_codename or extracted_codename):
         # debootstrap needs release codenames, not version numbers
         if version_codename:
             version_id = version_codename